Process Hacker
handle.c File Reference
#include <phbase.h>
#include <handlep.h>

Go to the source code of this file.

Functions

VOID PhHandleTableInitialization (VOID)
 
PPH_HANDLE_TABLE PhCreateHandleTable (VOID)
 
VOID PhDestroyHandleTable (_In_ _Post_invalid_ PPH_HANDLE_TABLE HandleTable)
 
VOID PhpBlockOnLockedHandleTableEntry (_Inout_ PPH_HANDLE_TABLE HandleTable, _In_ PPH_HANDLE_TABLE_ENTRY HandleTableEntry)
 
BOOLEAN PhLockHandleTableEntry (_Inout_ PPH_HANDLE_TABLE HandleTable, _Inout_ PPH_HANDLE_TABLE_ENTRY HandleTableEntry)
 
VOID PhUnlockHandleTableEntry (_Inout_ PPH_HANDLE_TABLE HandleTable, _Inout_ PPH_HANDLE_TABLE_ENTRY HandleTableEntry)
 
HANDLE PhCreateHandle (_Inout_ PPH_HANDLE_TABLE HandleTable, _In_ PPH_HANDLE_TABLE_ENTRY HandleTableEntry)
 
BOOLEAN PhDestroyHandle (_Inout_ PPH_HANDLE_TABLE HandleTable, _In_ HANDLE Handle, _In_opt_ PPH_HANDLE_TABLE_ENTRY HandleTableEntry)
 
PPH_HANDLE_TABLE_ENTRY PhLookupHandleTableEntry (_In_ PPH_HANDLE_TABLE HandleTable, _In_ HANDLE Handle)
 
VOID PhEnumHandleTable (_In_ PPH_HANDLE_TABLE HandleTable, _In_ PPH_ENUM_HANDLE_TABLE_CALLBACK Callback, _In_opt_ PVOID Context)
 
VOID PhSweepHandleTable (_In_ PPH_HANDLE_TABLE HandleTable, _In_ PPH_ENUM_HANDLE_TABLE_CALLBACK Callback, _In_opt_ PVOID Context)
 
NTSTATUS PhQueryInformationHandleTable (_In_ PPH_HANDLE_TABLE HandleTable, _In_ PH_HANDLE_TABLE_INFORMATION_CLASS InformationClass, _Out_writes_bytes_opt_(BufferLength) PVOID Buffer, _In_ ULONG BufferLength, _Out_opt_ PULONG ReturnLength)
 
NTSTATUS PhSetInformationHandleTable (_Inout_ PPH_HANDLE_TABLE HandleTable, _In_ PH_HANDLE_TABLE_INFORMATION_CLASS InformationClass, _In_reads_bytes_(BufferLength) PVOID Buffer, _In_ ULONG BufferLength)
 
PPH_HANDLE_TABLE_ENTRY PhpAllocateHandleTableEntry (_Inout_ PPH_HANDLE_TABLE HandleTable, _Out_ PULONG HandleValue)
 
VOID PhpFreeHandleTableEntry (_Inout_ PPH_HANDLE_TABLE HandleTable, _In_ ULONG HandleValue, _Inout_ PPH_HANDLE_TABLE_ENTRY HandleTableEntry)
 
BOOLEAN PhpAllocateMoreHandleTableEntries (_In_ PPH_HANDLE_TABLE HandleTable, _In_ BOOLEAN Initialize)
 
PPH_HANDLE_TABLE_ENTRY PhpLookupHandleTableEntry (_In_ PPH_HANDLE_TABLE HandleTable, _In_ ULONG HandleValue)
 
ULONG PhpMoveFreeHandleTableEntries (_Inout_ PPH_HANDLE_TABLE HandleTable)
 
PPH_HANDLE_TABLE_ENTRY PhpCreateHandleTableLevel0 (_In_ PPH_HANDLE_TABLE HandleTable, _In_ BOOLEAN Initialize)
 
VOID PhpFreeHandleTableLevel0 (_In_ PPH_HANDLE_TABLE_ENTRY Table)
 
PPH_HANDLE_TABLE_ENTRYPhpCreateHandleTableLevel1 (_In_ PPH_HANDLE_TABLE HandleTable)
 
VOID PhpFreeHandleTableLevel1 (_In_ PPH_HANDLE_TABLE_ENTRY *Table)
 
PPH_HANDLE_TABLE_ENTRY ** PhpCreateHandleTableLevel2 (_In_ PPH_HANDLE_TABLE HandleTable)
 
VOID PhpFreeHandleTableLevel2 (_In_ PPH_HANDLE_TABLE_ENTRY **Table)
 

Function Documentation

HANDLE PhCreateHandle ( _Inout_ PPH_HANDLE_TABLE  HandleTable,
_In_ PPH_HANDLE_TABLE_ENTRY  HandleTableEntry 
)

Definition at line 234 of file handle.c.

PPH_HANDLE_TABLE PhCreateHandleTable ( VOID  )

Definition at line 45 of file handle.c.

BOOLEAN PhDestroyHandle ( _Inout_ PPH_HANDLE_TABLE  HandleTable,
_In_ HANDLE  Handle,
_In_opt_ PPH_HANDLE_TABLE_ENTRY  HandleTableEntry 
)

Definition at line 263 of file handle.c.

VOID PhDestroyHandleTable ( _In_ _Post_invalid_ PPH_HANDLE_TABLE  HandleTable)

Definition at line 96 of file handle.c.

VOID PhEnumHandleTable ( _In_ PPH_HANDLE_TABLE  HandleTable,
_In_ PPH_ENUM_HANDLE_TABLE_CALLBACK  Callback,
_In_opt_ PVOID  Context 
)

Definition at line 317 of file handle.c.

VOID PhHandleTableInitialization ( VOID  )

Definition at line 29 of file handle.c.

BOOLEAN PhLockHandleTableEntry ( _Inout_ PPH_HANDLE_TABLE  HandleTable,
_Inout_ PPH_HANDLE_TABLE_ENTRY  HandleTableEntry 
)

Definition at line 192 of file handle.c.

PPH_HANDLE_TABLE_ENTRY PhLookupHandleTableEntry ( _In_ PPH_HANDLE_TABLE  HandleTable,
_In_ HANDLE  Handle 
)

Definition at line 299 of file handle.c.

PPH_HANDLE_TABLE_ENTRY PhpAllocateHandleTableEntry ( _Inout_ PPH_HANDLE_TABLE  HandleTable,
_Out_ PULONG  HandleValue 
)

Definition at line 477 of file handle.c.

BOOLEAN PhpAllocateMoreHandleTableEntries ( _In_ PPH_HANDLE_TABLE  HandleTable,
_In_ BOOLEAN  Initialize 
)

Definition at line 641 of file handle.c.

VOID PhpBlockOnLockedHandleTableEntry ( _Inout_ PPH_HANDLE_TABLE  HandleTable,
_In_ PPH_HANDLE_TABLE_ENTRY  HandleTableEntry 
)

Definition at line 166 of file handle.c.

PPH_HANDLE_TABLE_ENTRY PhpCreateHandleTableLevel0 ( _In_ PPH_HANDLE_TABLE  HandleTable,
_In_ BOOLEAN  Initialize 
)

Definition at line 1014 of file handle.c.

PPH_HANDLE_TABLE_ENTRY* PhpCreateHandleTableLevel1 ( _In_ PPH_HANDLE_TABLE  HandleTable)

Definition at line 1063 of file handle.c.

PPH_HANDLE_TABLE_ENTRY** PhpCreateHandleTableLevel2 ( _In_ PPH_HANDLE_TABLE  HandleTable)

Definition at line 1094 of file handle.c.

VOID PhpFreeHandleTableEntry ( _Inout_ PPH_HANDLE_TABLE  HandleTable,
_In_ ULONG  HandleValue,
_Inout_ PPH_HANDLE_TABLE_ENTRY  HandleTableEntry 
)

Definition at line 596 of file handle.c.

VOID PhpFreeHandleTableLevel0 ( _In_ PPH_HANDLE_TABLE_ENTRY  Table)

Definition at line 1056 of file handle.c.

VOID PhpFreeHandleTableLevel1 ( _In_ PPH_HANDLE_TABLE_ENTRY Table)

Definition at line 1087 of file handle.c.

VOID PhpFreeHandleTableLevel2 ( _In_ PPH_HANDLE_TABLE_ENTRY **  Table)

Definition at line 1114 of file handle.c.

PPH_HANDLE_TABLE_ENTRY PhpLookupHandleTableEntry ( _In_ PPH_HANDLE_TABLE  HandleTable,
_In_ ULONG  HandleValue 
)

Definition at line 858 of file handle.c.

ULONG PhpMoveFreeHandleTableEntries ( _Inout_ PPH_HANDLE_TABLE  HandleTable)

Definition at line 912 of file handle.c.

NTSTATUS PhQueryInformationHandleTable ( _In_ PPH_HANDLE_TABLE  HandleTable,
_In_ PH_HANDLE_TABLE_INFORMATION_CLASS  InformationClass,
_Out_writes_bytes_opt_(BufferLength) PVOID  Buffer,
_In_ ULONG  BufferLength,
_Out_opt_ PULONG  ReturnLength 
)

Definition at line 380 of file handle.c.

NTSTATUS PhSetInformationHandleTable ( _Inout_ PPH_HANDLE_TABLE  HandleTable,
_In_ PH_HANDLE_TABLE_INFORMATION_CLASS  InformationClass,
_In_reads_bytes_(BufferLength) PVOID  Buffer,
_In_ ULONG  BufferLength 
)

Definition at line 439 of file handle.c.

VOID PhSweepHandleTable ( _In_ PPH_HANDLE_TABLE  HandleTable,
_In_ PPH_ENUM_HANDLE_TABLE_CALLBACK  Callback,
_In_opt_ PVOID  Context 
)

Definition at line 349 of file handle.c.

VOID PhUnlockHandleTableEntry ( _Inout_ PPH_HANDLE_TABLE  HandleTable,
_Inout_ PPH_HANDLE_TABLE_ENTRY  HandleTableEntry 
)

Definition at line 222 of file handle.c.