C# 클래스 Binarysharp.MemoryManagement.Helpers.HandleManipulator

Static helper class providing tools for manipulating handles.
파일 보기 프로젝트 열기: ZenLulz/MemorySharp

공개 메소드들

메소드 설명
CloseHandle ( IntPtr handle ) : void

Closes an open object handle.

HandleToProcess ( SafeMemoryHandle processHandle ) : Process

Converts an handle into a Process object assuming this is a process handle.

HandleToProcessId ( SafeMemoryHandle processHandle ) : int

Converts an handle into a process id assuming this is a process handle.

HandleToThread ( SafeMemoryHandle threadHandle ) : ProcessThread

Converts an handle into a ProcessThread object assuming this is a thread handle.

HandleToThreadId ( SafeMemoryHandle threadHandle ) : int

Converts an handle into a thread id assuming this is a thread handle.

ValidateAsArgument ( IntPtr handle, string argumentName ) : void

Validates an handle to fit correctly as argument.

ValidateAsArgument ( SafeMemoryHandle handle, string argumentName ) : void

Validates an handle to fit correctly as argument.

메소드 상세

CloseHandle() 공개 정적인 메소드

Closes an open object handle.
public static CloseHandle ( IntPtr handle ) : void
handle System.IntPtr A valid handle to an open object.
리턴 void

HandleToProcess() 공개 정적인 메소드

Converts an handle into a Process object assuming this is a process handle.
public static HandleToProcess ( SafeMemoryHandle processHandle ) : Process
processHandle Binarysharp.MemoryManagement.Native.SafeMemoryHandle A valid handle to an opened process.
리턴 System.Diagnostics.Process

HandleToProcessId() 공개 정적인 메소드

Converts an handle into a process id assuming this is a process handle.
public static HandleToProcessId ( SafeMemoryHandle processHandle ) : int
processHandle Binarysharp.MemoryManagement.Native.SafeMemoryHandle A valid handle to an opened process.
리턴 int

HandleToThread() 공개 정적인 메소드

Converts an handle into a ProcessThread object assuming this is a thread handle.
public static HandleToThread ( SafeMemoryHandle threadHandle ) : ProcessThread
threadHandle Binarysharp.MemoryManagement.Native.SafeMemoryHandle A valid handle to an opened thread.
리턴 System.Diagnostics.ProcessThread

HandleToThreadId() 공개 정적인 메소드

Converts an handle into a thread id assuming this is a thread handle.
public static HandleToThreadId ( SafeMemoryHandle threadHandle ) : int
threadHandle Binarysharp.MemoryManagement.Native.SafeMemoryHandle A valid handle to an opened thread.
리턴 int

ValidateAsArgument() 공개 정적인 메소드

Validates an handle to fit correctly as argument.
public static ValidateAsArgument ( IntPtr handle, string argumentName ) : void
handle System.IntPtr A handle to validate.
argumentName string The name of the argument that represents the handle in its original function.
리턴 void

ValidateAsArgument() 공개 정적인 메소드

Validates an handle to fit correctly as argument.
public static ValidateAsArgument ( SafeMemoryHandle handle, string argumentName ) : void
handle Binarysharp.MemoryManagement.Native.SafeMemoryHandle A handle to validate.
argumentName string The name of the argument that represents the handle in its original function.
리턴 void