C# Класс Binarysharp.MemoryManagement.Helpers.HandleManipulator

Static helper class providing tools for manipulating handles.
Показать файл Открыть проект

Открытые методы

Метод Описание
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