Process Hacker
|
Go to the source code of this file.
Macros | |
#define | PH_VECTOR_LEVEL_NONE 0 |
#define | PH_VECTOR_LEVEL_SSE2 1 |
#define | PH_VECTOR_LEVEL_AVX 2 |
Typedefs | |
typedef struct _PHP_BASE_THREAD_CONTEXT | PHP_BASE_THREAD_CONTEXT |
typedef struct _PHP_BASE_THREAD_CONTEXT * | PPHP_BASE_THREAD_CONTEXT |
Functions | |
VOID NTAPI | PhpListDeleteProcedure (_In_ PVOID Object, _In_ ULONG Flags) |
VOID NTAPI | PhpPointerListDeleteProcedure (_In_ PVOID Object, _In_ ULONG Flags) |
VOID NTAPI | PhpQueueDeleteProcedure (_In_ PVOID Object, _In_ ULONG Flags) |
VOID NTAPI | PhpHashtableDeleteProcedure (_In_ PVOID Object, _In_ ULONG Flags) |
BOOLEAN | PhInitializeBase (_In_ ULONG Flags) |
Initializes the base support module. | |
NTSTATUS | PhpBaseThreadStart (_In_ PVOID Parameter) |
HANDLE | PhCreateThread (_In_opt_ SIZE_T StackSize, _In_ PUSER_THREAD_START_ROUTINE StartAddress, _In_opt_ PVOID Parameter) |
Creates a thread. | |
VOID | PhQuerySystemTime (_Out_ PLARGE_INTEGER SystemTime) |
Gets the current system time (UTC). | |
VOID | PhQueryTimeZoneBias (_Out_ PLARGE_INTEGER TimeZoneBias) |
Gets the offset of the current time zone from UTC. | |
VOID | PhSystemTimeToLocalTime (_In_ PLARGE_INTEGER SystemTime, _Out_ PLARGE_INTEGER LocalTime) |
Converts system time to local time. | |
VOID | PhLocalTimeToSystemTime (_In_ PLARGE_INTEGER LocalTime, _Out_ PLARGE_INTEGER SystemTime) |
Converts local time to system time. | |
_May_raise_ _Check_return_ _Ret_notnull_ | _Post_writable_byte_size_ (Size) |
Allocates a block of memory. | |
PVOID | PhAllocateSafe (_In_ SIZE_T Size) |
Allocates a block of memory. | |
PVOID | PhAllocateExSafe (_In_ SIZE_T Size, _In_ ULONG Flags) |
Allocates a block of memory. | |
VOID | PhFree (_Frees_ptr_opt_ PVOID Memory) |
Frees a block of memory allocated with PhAllocate(). | |
PVOID | PhReAllocateSafe (_In_ PVOID Memory, _In_ SIZE_T Size) |
Re-allocates a block of memory originally allocated with PhAllocate(). | |
_Check_return_ _Ret_maybenull_ PVOID | PhAllocatePage (_In_ SIZE_T Size, _Out_opt_ PSIZE_T NewSize) |
Allocates pages of memory. | |
VOID | PhFreePage (_Frees_ptr_opt_ PVOID Memory) |
Frees pages of memory allocated with PhAllocatePage(). | |
SIZE_T | PhCountStringZ (_In_ PWSTR String) |
Determines the length of the specified string, in characters. | |
PSTR | PhDuplicateBytesZ (_In_ PSTR String) |
Allocates space for and copies a byte string. | |
PSTR | PhDuplicateBytesZSafe (_In_ PSTR String) |
Allocates space for and copies a byte string. | |
PWSTR | PhDuplicateStringZ (_In_ PWSTR String) |
Allocates space for and copies a 16-bit string. | |
BOOLEAN | PhCopyBytesZ (_In_ PSTR InputBuffer, _In_ SIZE_T InputCount, _Out_writes_opt_z_(OutputCount) PSTR OutputBuffer, _In_ SIZE_T OutputCount, _Out_opt_ PSIZE_T ReturnCount) |
Copies a string with optional null termination and a maximum number of characters. | |
BOOLEAN | PhCopyStringZ (_In_ PWSTR InputBuffer, _In_ SIZE_T InputCount, _Out_writes_opt_z_(OutputCount) PWSTR OutputBuffer, _In_ SIZE_T OutputCount, _Out_opt_ PSIZE_T ReturnCount) |
Copies a string with optional null termination and a maximum number of characters. | |
BOOLEAN | PhCopyStringZFromBytes (_In_ PSTR InputBuffer, _In_ SIZE_T InputCount, _Out_writes_opt_z_(OutputCount) PWSTR OutputBuffer, _In_ SIZE_T OutputCount, _Out_opt_ PSIZE_T ReturnCount) |
Copies a string with optional null termination and a maximum number of characters. | |
BOOLEAN | PhCopyStringZFromMultiByte (_In_ PSTR InputBuffer, _In_ SIZE_T InputCount, _Out_writes_opt_z_(OutputCount) PWSTR OutputBuffer, _In_ SIZE_T OutputCount, _Out_opt_ PSIZE_T ReturnCount) |
Copies a string with optional null termination and a maximum number of characters. | |
FORCEINLINE LONG | PhpCompareRightNatural (_In_ PWSTR A, _In_ PWSTR B) |
FORCEINLINE LONG | PhpCompareLeftNatural (_In_ PWSTR A, _In_ PWSTR B) |
FORCEINLINE LONG | PhpCompareStringZNatural (_In_ PWSTR A, _In_ PWSTR B, _In_ BOOLEAN IgnoreCase) |
LONG | PhCompareStringZNatural (_In_ PWSTR A, _In_ PWSTR B, _In_ BOOLEAN IgnoreCase) |
Compares two strings in natural sort order. | |
LONG | PhCompareStringRef (_In_ PPH_STRINGREF String1, _In_ PPH_STRINGREF String2, _In_ BOOLEAN IgnoreCase) |
Compares two strings. | |
BOOLEAN | PhEqualStringRef (_In_ PPH_STRINGREF String1, _In_ PPH_STRINGREF String2, _In_ BOOLEAN IgnoreCase) |
Determines if two strings are equal. | |
ULONG_PTR | PhFindCharInStringRef (_In_ PPH_STRINGREF String, _In_ WCHAR Character, _In_ BOOLEAN IgnoreCase) |
Locates a character in a string. | |
ULONG_PTR | PhFindLastCharInStringRef (_In_ PPH_STRINGREF String, _In_ WCHAR Character, _In_ BOOLEAN IgnoreCase) |
Locates a character in a string, searching backwards. | |
ULONG_PTR | PhFindStringInStringRef (_In_ PPH_STRINGREF String, _In_ PPH_STRINGREF SubString, _In_ BOOLEAN IgnoreCase) |
Locates a string in a string. | |
BOOLEAN | PhSplitStringRefAtChar (_In_ PPH_STRINGREF Input, _In_ WCHAR Separator, _Out_ PPH_STRINGREF FirstPart, _Out_ PPH_STRINGREF SecondPart) |
Splits a string. | |
BOOLEAN | PhSplitStringRefAtLastChar (_In_ PPH_STRINGREF Input, _In_ WCHAR Separator, _Out_ PPH_STRINGREF FirstPart, _Out_ PPH_STRINGREF SecondPart) |
Splits a string at the last occurrence of a character. | |
BOOLEAN | PhSplitStringRefAtString (_In_ PPH_STRINGREF Input, _In_ PPH_STRINGREF Separator, _In_ BOOLEAN IgnoreCase, _Out_ PPH_STRINGREF FirstPart, _Out_ PPH_STRINGREF SecondPart) |
Splits a string. | |
BOOLEAN | PhSplitStringRefEx (_In_ PPH_STRINGREF Input, _In_ PPH_STRINGREF Separator, _In_ ULONG Flags, _Out_ PPH_STRINGREF FirstPart, _Out_ PPH_STRINGREF SecondPart, _Out_opt_ PPH_STRINGREF SeparatorPart) |
Splits a string. | |
VOID | PhTrimStringRef (_Inout_ PPH_STRINGREF String, _In_ PPH_STRINGREF CharSet, _In_ ULONG Flags) |
PPH_STRING | PhCreateString (_In_ PWSTR Buffer) |
Creates a string object from an existing null-terminated string. | |
PPH_STRING | PhCreateStringEx (_In_opt_ PWCHAR Buffer, _In_ SIZE_T Length) |
Creates a string object using a specified length. | |
PPH_STRING | PhReferenceEmptyString (VOID) |
Obtains a reference to a zero-length string. | |
PPH_STRING | PhConcatStrings (_In_ ULONG Count,...) |
Concatenates multiple strings. | |
PPH_STRING | PhConcatStrings_V (_In_ ULONG Count, _In_ va_list ArgPtr) |
Concatenates multiple strings. | |
PPH_STRING | PhConcatStrings2 (_In_ PWSTR String1, _In_ PWSTR String2) |
Concatenates two strings. | |
PPH_STRING | PhConcatStringRef2 (_In_ PPH_STRINGREF String1, _In_ PPH_STRINGREF String2) |
Concatenates two strings. | |
PPH_STRING | PhConcatStringRef3 (_In_ PPH_STRINGREF String1, _In_ PPH_STRINGREF String2, _In_ PPH_STRINGREF String3) |
Concatenates three strings. | |
PPH_STRING | PhFormatString (_In_ _Printf_format_string_ PWSTR Format,...) |
Creates a string using format specifiers. | |
PPH_STRING | PhFormatString_V (_In_ _Printf_format_string_ PWSTR Format, _In_ va_list ArgPtr) |
Creates a string using format specifiers. | |
PPH_BYTES | PhCreateBytes (_In_ PSTR Buffer) |
Creates a bytes object from an existing null-terminated string of bytes. | |
PPH_BYTES | PhCreateBytesEx (_In_opt_ PCHAR Buffer, _In_ SIZE_T Length) |
Creates a bytes object. | |
BOOLEAN | PhWriteUnicodeDecoder (_Inout_ PPH_UNICODE_DECODER Decoder, _In_ ULONG CodeUnit) |
BOOLEAN | PhpReadUnicodeDecoder (_Inout_ PPH_UNICODE_DECODER Decoder, _Out_ PULONG CodeUnit) |
VOID | PhpUnreadUnicodeDecoder (_Inout_ PPH_UNICODE_DECODER Decoder, _In_ ULONG CodeUnit) |
BOOLEAN | PhpDecodeUtf8Error (_Inout_ PPH_UNICODE_DECODER Decoder, _Out_ PULONG CodePoint, _In_ ULONG Which) |
BOOLEAN | PhDecodeUnicodeDecoder (_Inout_ PPH_UNICODE_DECODER Decoder, _Out_ PULONG CodePoint) |
BOOLEAN | PhEncodeUnicode (_In_ UCHAR Encoding, _In_ ULONG CodePoint, _Out_opt_ PVOID CodeUnits, _Out_ PULONG NumberOfCodeUnits) |
VOID | PhZeroExtendToUtf16Buffer (_In_reads_bytes_(InputLength) PSTR Input, _In_ SIZE_T InputLength, _Out_writes_bytes_(InputLength *sizeof(WCHAR)) PWSTR Output) |
Converts an ASCII string to a UTF-16 string by zero-extending each byte. | |
PPH_STRING | PhZeroExtendToUtf16Ex (_In_reads_bytes_(InputLength) PCH Input, _In_ SIZE_T InputLength) |
PPH_BYTES | PhConvertUtf16ToAsciiEx (_In_ PWCH Buffer, _In_ SIZE_T Length, _In_opt_ CHAR Replacement) |
PPH_STRING | PhConvertMultiByteToUtf16 (_In_ PSTR Buffer) |
Creates a string object from an existing null-terminated multi-byte string. | |
PPH_STRING | PhConvertMultiByteToUtf16Ex (_In_ PCHAR Buffer, _In_ SIZE_T Length) |
Creates a string object from an existing null-terminated multi-byte string. | |
PPH_BYTES | PhConvertUtf16ToMultiByte (_In_ PWSTR Buffer) |
Creates a multi-byte string from an existing null-terminated UTF-16 string. | |
PPH_BYTES | PhConvertUtf16ToMultiByteEx (_In_ PWCHAR Buffer, _In_ SIZE_T Length) |
Creates a multi-byte string from an existing null-terminated UTF-16 string. | |
BOOLEAN | PhConvertUtf8ToUtf16Size (_Out_ PSIZE_T BytesInUtf16String, _In_reads_bytes_(BytesInUtf8String) PCH Utf8String, _In_ SIZE_T BytesInUtf8String) |
BOOLEAN | PhConvertUtf8ToUtf16Buffer (_Out_writes_bytes_to_(MaxBytesInUtf16String,*BytesInUtf16String) PWCH Utf16String, _In_ SIZE_T MaxBytesInUtf16String, _Out_opt_ PSIZE_T BytesInUtf16String, _In_reads_bytes_(BytesInUtf8String) PCH Utf8String, _In_ SIZE_T BytesInUtf8String) |
PPH_STRING | PhConvertUtf8ToUtf16 (_In_ PSTR Buffer) |
PPH_STRING | PhConvertUtf8ToUtf16Ex (_In_ PCHAR Buffer, _In_ SIZE_T Length) |
BOOLEAN | PhConvertUtf16ToUtf8Size (_Out_ PSIZE_T BytesInUtf8String, _In_reads_bytes_(BytesInUtf16String) PWCH Utf16String, _In_ SIZE_T BytesInUtf16String) |
BOOLEAN | PhConvertUtf16ToUtf8Buffer (_Out_writes_bytes_to_(MaxBytesInUtf8String,*BytesInUtf8String) PCH Utf8String, _In_ SIZE_T MaxBytesInUtf8String, _Out_opt_ PSIZE_T BytesInUtf8String, _In_reads_bytes_(BytesInUtf16String) PWCH Utf16String, _In_ SIZE_T BytesInUtf16String) |
PPH_BYTES | PhConvertUtf16ToUtf8 (_In_ PWSTR Buffer) |
PPH_BYTES | PhConvertUtf16ToUtf8Ex (_In_ PWCHAR Buffer, _In_ SIZE_T Length) |
VOID | PhInitializeStringBuilder (_Out_ PPH_STRING_BUILDER StringBuilder, _In_ SIZE_T InitialCapacity) |
Initializes a string builder object. | |
VOID | PhDeleteStringBuilder (_Inout_ PPH_STRING_BUILDER StringBuilder) |
Frees resources used by a string builder object. | |
PPH_STRING | PhFinalStringBuilderString (_Inout_ PPH_STRING_BUILDER StringBuilder) |
Obtains a reference to the string constructed by a string builder object and frees resources used by the object. | |
VOID | PhpResizeStringBuilder (_In_ PPH_STRING_BUILDER StringBuilder, _In_ SIZE_T NewCapacity) |
FORCEINLINE VOID | PhpWriteNullTerminatorStringBuilder (_In_ PPH_STRING_BUILDER StringBuilder) |
VOID | PhAppendStringBuilder (_Inout_ PPH_STRING_BUILDER StringBuilder, _In_ PPH_STRINGREF String) |
Appends a string to the end of a string builder string. | |
VOID | PhAppendStringBuilder2 (_Inout_ PPH_STRING_BUILDER StringBuilder, _In_ PWSTR String) |
Appends a string to the end of a string builder string. | |
VOID | PhAppendStringBuilderEx (_Inout_ PPH_STRING_BUILDER StringBuilder, _In_opt_ PWCHAR String, _In_ SIZE_T Length) |
Appends a string to the end of a string builder string. | |
VOID | PhAppendCharStringBuilder (_Inout_ PPH_STRING_BUILDER StringBuilder, _In_ WCHAR Character) |
Appends a character to the end of a string builder string. | |
VOID | PhAppendCharStringBuilder2 (_Inout_ PPH_STRING_BUILDER StringBuilder, _In_ WCHAR Character, _In_ SIZE_T Count) |
Appends a number of characters to the end of a string builder string. | |
VOID | PhAppendFormatStringBuilder (_Inout_ PPH_STRING_BUILDER StringBuilder, _In_ _Printf_format_string_ PWSTR Format,...) |
Appends a formatted string to the end of a string builder string. | |
VOID | PhAppendFormatStringBuilder_V (_Inout_ PPH_STRING_BUILDER StringBuilder, _In_ _Printf_format_string_ PWSTR Format, _In_ va_list ArgPtr) |
VOID | PhInsertStringBuilder (_Inout_ PPH_STRING_BUILDER StringBuilder, _In_ SIZE_T Index, _In_ PPH_STRINGREF String) |
Inserts a string into a string builder string. | |
VOID | PhInsertStringBuilder2 (_Inout_ PPH_STRING_BUILDER StringBuilder, _In_ SIZE_T Index, _In_ PWSTR String) |
Inserts a string into a string builder string. | |
VOID | PhInsertStringBuilderEx (_Inout_ PPH_STRING_BUILDER StringBuilder, _In_ SIZE_T Index, _In_opt_ PWCHAR String, _In_ SIZE_T Length) |
Inserts a string into a string builder string. | |
VOID | PhRemoveStringBuilder (_Inout_ PPH_STRING_BUILDER StringBuilder, _In_ SIZE_T StartIndex, _In_ SIZE_T Count) |
Removes characters from a string builder string. | |
VOID | PhInitializeBytesBuilder (_Out_ PPH_BYTES_BUILDER BytesBuilder, _In_ SIZE_T InitialCapacity) |
Initializes a byte string builder object. | |
VOID | PhDeleteBytesBuilder (_Inout_ PPH_BYTES_BUILDER BytesBuilder) |
Frees resources used by a byte string builder object. | |
PPH_BYTES | PhFinalBytesBuilderBytes (_Inout_ PPH_BYTES_BUILDER BytesBuilder) |
Obtains a reference to the byte string constructed by a byte string builder object and frees resources used by the object. | |
VOID | PhpResizeBytesBuilder (_In_ PPH_BYTES_BUILDER BytesBuilder, _In_ SIZE_T NewCapacity) |
FORCEINLINE VOID | PhpWriteNullTerminatorBytesBuilder (_In_ PPH_BYTES_BUILDER BytesBuilder) |
VOID | PhAppendBytesBuilder (_Inout_ PPH_BYTES_BUILDER BytesBuilder, _In_ PPH_BYTESREF Bytes) |
Appends a byte string to the end of a byte string builder string. | |
VOID | PhAppendBytesBuilder2 (_Inout_ PPH_BYTES_BUILDER BytesBuilder, _In_ PCHAR Bytes) |
Appends a byte string to the end of a byte string builder string. | |
PVOID | PhAppendBytesBuilderEx (_Inout_ PPH_BYTES_BUILDER BytesBuilder, _In_opt_ PVOID Buffer, _In_ SIZE_T Length, _In_opt_ SIZE_T Alignment, _Out_opt_ PSIZE_T Offset) |
Appends a byte string to the end of a byte string builder string. | |
PPH_LIST | PhCreateList (_In_ ULONG InitialCapacity) |
Creates a list object. | |
VOID | PhResizeList (_Inout_ PPH_LIST List, _In_ ULONG NewCapacity) |
Resizes a list. | |
VOID | PhAddItemList (_Inout_ PPH_LIST List, _In_ PVOID Item) |
Adds an item to a list. | |
VOID | PhAddItemsList (_Inout_ PPH_LIST List, _In_ PVOID *Items, _In_ ULONG Count) |
Adds items to a list. | |
VOID | PhClearList (_Inout_ PPH_LIST List) |
Clears a list. | |
_Success_ (return!=-1) | |
VOID | PhInsertItemList (_Inout_ PPH_LIST List, _In_ ULONG Index, _In_ PVOID Item) |
Inserts an item into a list. | |
VOID | PhInsertItemsList (_Inout_ PPH_LIST List, _In_ ULONG Index, _In_ PVOID *Items, _In_ ULONG Count) |
Inserts items into a list. | |
VOID | PhRemoveItemList (_Inout_ PPH_LIST List, _In_ ULONG Index) |
Removes an item from a list. | |
VOID | PhRemoveItemsList (_Inout_ PPH_LIST List, _In_ ULONG StartIndex, _In_ ULONG Count) |
Removes items from a list. | |
PPH_POINTER_LIST | PhCreatePointerList (_In_ ULONG InitialCapacity) |
Creates a pointer list object. | |
FORCEINLINE ULONG | PhpDecodePointerListIndex (_In_ PVOID Index) |
Decodes an index stored in a free entry. | |
FORCEINLINE PVOID | PhpEncodePointerListIndex (_In_ ULONG Index) |
Encodes an index for storage in a free entry. | |
FORCEINLINE HANDLE | PhpPointerListIndexToHandle (_In_ ULONG Index) |
FORCEINLINE ULONG | PhpPointerListHandleToIndex (_In_ HANDLE Handle) |
HANDLE | PhAddItemPointerList (_Inout_ PPH_POINTER_LIST PointerList, _In_ PVOID Pointer) |
Adds a pointer to a pointer list. | |
BOOLEAN | PhEnumPointerListEx (_In_ PPH_POINTER_LIST PointerList, _Inout_ PULONG EnumerationKey, _Out_ PVOID *Pointer, _Out_ PHANDLE PointerHandle) |
HANDLE | PhFindItemPointerList (_In_ PPH_POINTER_LIST PointerList, _In_ PVOID Pointer) |
Locates a pointer in a pointer list. | |
VOID | PhRemoveItemPointerList (_Inout_ PPH_POINTER_LIST PointerList, _In_ HANDLE PointerHandle) |
Removes a pointer from a pointer list. | |
FORCEINLINE ULONG | PhpValidateHash (_In_ ULONG Hash) |
FORCEINLINE ULONG | PhpIndexFromHash (_In_ PPH_HASHTABLE Hashtable, _In_ ULONG Hash) |
FORCEINLINE ULONG | PhpGetNumberOfBuckets (_In_ ULONG Capacity) |
PPH_HASHTABLE | PhCreateHashtable (_In_ ULONG EntrySize, _In_ PPH_HASHTABLE_COMPARE_FUNCTION CompareFunction, _In_ PPH_HASHTABLE_HASH_FUNCTION HashFunction, _In_ ULONG InitialCapacity) |
Creates a hashtable object. | |
VOID | PhpResizeHashtable (_Inout_ PPH_HASHTABLE Hashtable, _In_ ULONG NewCapacity) |
FORCEINLINE PVOID | PhpAddEntryHashtable (_Inout_ PPH_HASHTABLE Hashtable, _In_ PVOID Entry, _In_ BOOLEAN CheckForDuplicate, _Out_opt_ PBOOLEAN Added) |
PVOID | PhAddEntryHashtable (_Inout_ PPH_HASHTABLE Hashtable, _In_ PVOID Entry) |
Adds an entry to a hashtable. | |
PVOID | PhAddEntryHashtableEx (_Inout_ PPH_HASHTABLE Hashtable, _In_ PVOID Entry, _Out_opt_ PBOOLEAN Added) |
Adds an entry to a hashtable or returns an existing one. | |
VOID | PhClearHashtable (_Inout_ PPH_HASHTABLE Hashtable) |
Clears a hashtable. | |
BOOLEAN | PhEnumHashtable (_In_ PPH_HASHTABLE Hashtable, _Out_ PVOID *Entry, _Inout_ PULONG EnumerationKey) |
Enumerates the entries in a hashtable. | |
PVOID | PhFindEntryHashtable (_In_ PPH_HASHTABLE Hashtable, _In_ PVOID Entry) |
Locates an entry in a hashtable. | |
BOOLEAN | PhRemoveEntryHashtable (_Inout_ PPH_HASHTABLE Hashtable, _In_ PVOID Entry) |
Removes an entry from a hashtable. | |
ULONG | PhHashBytes (_In_reads_(Length) PUCHAR Bytes, _In_ SIZE_T Length) |
Generates a hash code for a sequence of bytes. | |
ULONG | PhHashStringRef (_In_ PPH_STRINGREF String, _In_ BOOLEAN IgnoreCase) |
Generates a hash code for a string. | |
BOOLEAN NTAPI | PhpSimpleHashtableCompareFunction (_In_ PVOID Entry1, _In_ PVOID Entry2) |
ULONG NTAPI | PhpSimpleHashtableHashFunction (_In_ PVOID Entry) |
PPH_HASHTABLE | PhCreateSimpleHashtable (_In_ ULONG InitialCapacity) |
PVOID | PhAddItemSimpleHashtable (_Inout_ PPH_HASHTABLE SimpleHashtable, _In_opt_ PVOID Key, _In_opt_ PVOID Value) |
PVOID * | PhFindItemSimpleHashtable (_In_ PPH_HASHTABLE SimpleHashtable, _In_opt_ PVOID Key) |
BOOLEAN | PhRemoveItemSimpleHashtable (_Inout_ PPH_HASHTABLE SimpleHashtable, _In_opt_ PVOID Key) |
VOID | PhInitializeFreeList (_Out_ PPH_FREE_LIST FreeList, _In_ SIZE_T Size, _In_ ULONG MaximumCount) |
Initializes a free list object. | |
VOID | PhDeleteFreeList (_Inout_ PPH_FREE_LIST FreeList) |
Frees resources used by a free list object. | |
PVOID | PhAllocateFromFreeList (_Inout_ PPH_FREE_LIST FreeList) |
Allocates a block of memory from a free list. | |
VOID | PhFreeToFreeList (_Inout_ PPH_FREE_LIST FreeList, _In_ PVOID Memory) |
Frees a block of memory to a free list. | |
VOID | PhInitializeCallback (_Out_ PPH_CALLBACK Callback) |
Initializes a callback object. | |
VOID | PhDeleteCallback (_Inout_ PPH_CALLBACK Callback) |
Frees resources used by a callback object. | |
VOID | PhRegisterCallback (_Inout_ PPH_CALLBACK Callback, _In_ PPH_CALLBACK_FUNCTION Function, _In_opt_ PVOID Context, _Out_ PPH_CALLBACK_REGISTRATION Registration) |
Registers a callback function to be notified. | |
VOID | PhRegisterCallbackEx (_Inout_ PPH_CALLBACK Callback, _In_ PPH_CALLBACK_FUNCTION Function, _In_opt_ PVOID Context, _In_ USHORT Flags, _Out_ PPH_CALLBACK_REGISTRATION Registration) |
Registers a callback function to be notified. | |
VOID | PhUnregisterCallback (_Inout_ PPH_CALLBACK Callback, _Inout_ PPH_CALLBACK_REGISTRATION Registration) |
Unregisters a callback function. | |
VOID | PhInvokeCallback (_In_ PPH_CALLBACK Callback, _In_opt_ PVOID Parameter) |
Notifies all registered callback functions. | |
ULONG | PhGetPrimeNumber (_In_ ULONG Minimum) |
Retrieves a prime number bigger than or equal to the specified number. | |
ULONG | PhRoundUpToPowerOfTwo (_In_ ULONG Number) |
Rounds up a number to the next power of two. | |
ULONG | PhExponentiate (_In_ ULONG Base, _In_ ULONG Exponent) |
Performs exponentiation. | |
ULONG64 | PhExponentiate64 (_In_ ULONG64 Base, _In_ ULONG Exponent) |
Performs 64-bit exponentiation. | |
BOOLEAN | PhHexStringToBuffer (_In_ PPH_STRINGREF String, _Out_writes_bytes_(String->Length/sizeof(WCHAR)/2) PUCHAR Buffer) |
Converts a sequence of hexadecimal digits into a byte array. | |
PPH_STRING | PhBufferToHexString (_In_reads_bytes_(Length) PUCHAR Buffer, _In_ ULONG Length) |
Converts a byte array into a sequence of hexadecimal digits. | |
PPH_STRING | PhBufferToHexStringEx (_In_reads_bytes_(Length) PUCHAR Buffer, _In_ ULONG Length, _In_ BOOLEAN UpperCase) |
Converts a byte array into a sequence of hexadecimal digits. | |
BOOLEAN | PhpStringToInteger64 (_In_ PPH_STRINGREF String, _In_ ULONG Base, _Out_ PULONG64 Integer) |
Converts a string to an integer. | |
BOOLEAN | PhStringToInteger64 (_In_ PPH_STRINGREF String, _In_opt_ ULONG Base, _Out_opt_ PLONG64 Integer) |
Converts a string to an integer. | |
PPH_STRING | PhIntegerToString64 (_In_ LONG64 Integer, _In_opt_ ULONG Base, _In_ BOOLEAN Signed) |
Converts an integer to a string. | |
VOID | PhPrintTimeSpan (_Out_writes_(PH_TIMESPAN_STR_LEN_1) PWSTR Destination, _In_ ULONG64 Ticks, _In_opt_ ULONG Mode) |
VOID | PhFillMemoryUlong (_Inout_updates_(Count) _Needs_align_(4) PULONG Memory, _In_ ULONG Value, _In_ SIZE_T Count) |
Fills a memory block with a ULONG pattern. | |
VOID FASTCALL | PhxfFillMemoryUlong (PULONG Memory, ULONG Value, ULONG Count) |
Deprecated. | |
VOID | PhDivideSinglesBySingle (_Inout_updates_(Count) PFLOAT A, _In_ FLOAT B, _In_ SIZE_T Count) |
Divides an array of numbers by a number. | |
VOID FASTCALL | PhxfDivideSingle2U (PFLOAT A, FLOAT B, ULONG Count) |
Deprecated. | |
Variables | |
PPH_OBJECT_TYPE | PhStringType |
PPH_OBJECT_TYPE | PhBytesType |
PPH_OBJECT_TYPE | PhListType |
PPH_OBJECT_TYPE | PhPointerListType |
PPH_OBJECT_TYPE | PhHashtableType |
typedef struct _PHP_BASE_THREAD_CONTEXT PHP_BASE_THREAD_CONTEXT |
typedef struct _PHP_BASE_THREAD_CONTEXT * PPHP_BASE_THREAD_CONTEXT |
_May_raise_ _Post_writable_byte_size_ | ( | Size | ) |
Allocates a block of memory.
Re-allocates a block of memory originally allocated with PhAllocate().
Size | The number of bytes to allocate. |
Memory | A pointer to a block of memory. |
Size | The new size of the memory block, in bytes. |
PVOID PhAddEntryHashtable | ( | _Inout_ PPH_HASHTABLE | Hashtable, |
_In_ PVOID | Entry | ||
) |
Adds an entry to a hashtable.
Hashtable | A hashtable object. |
Entry | The entry to add. |
PVOID PhAddEntryHashtableEx | ( | _Inout_ PPH_HASHTABLE | Hashtable, |
_In_ PVOID | Entry, | ||
_Out_opt_ PBOOLEAN | Added | ||
) |
Adds an entry to a hashtable or returns an existing one.
Hashtable | A hashtable object. |
Entry | The entry to add. |
Added | A variable which receives TRUE if a new entry was created, and FALSE if an existing entry was returned. |
HANDLE PhAddItemPointerList | ( | _Inout_ PPH_POINTER_LIST | PointerList, |
_In_ PVOID | Pointer | ||
) |
PVOID PhAddItemSimpleHashtable | ( | _Inout_ PPH_HASHTABLE | SimpleHashtable, |
_In_opt_ PVOID | Key, | ||
_In_opt_ PVOID | Value | ||
) |
PVOID PhAllocateExSafe | ( | _In_ SIZE_T | Size, |
_In_ ULONG | Flags | ||
) |
PVOID PhAllocateFromFreeList | ( | _Inout_ PPH_FREE_LIST | FreeList | ) |
Allocates a block of memory from a free list.
FreeList | A pointer to a free list object. |
_Check_return_ _Ret_maybenull_ PVOID PhAllocatePage | ( | _In_ SIZE_T | Size, |
_Out_opt_ PSIZE_T | NewSize | ||
) |
Allocates pages of memory.
Size | The number of bytes to allocate. The number of pages allocated will be large enough to contain Size bytes. |
NewSize | The number of bytes actually allocated. This is Size rounded up to the next multiple of PAGE_SIZE. |
PVOID PhAllocateSafe | ( | _In_ SIZE_T | Size | ) |
VOID PhAppendBytesBuilder | ( | _Inout_ PPH_BYTES_BUILDER | BytesBuilder, |
_In_ PPH_BYTESREF | Bytes | ||
) |
VOID PhAppendBytesBuilder2 | ( | _Inout_ PPH_BYTES_BUILDER | BytesBuilder, |
_In_ PCHAR | Bytes | ||
) |
PVOID PhAppendBytesBuilderEx | ( | _Inout_ PPH_BYTES_BUILDER | BytesBuilder, |
_In_opt_ PVOID | Buffer, | ||
_In_ SIZE_T | Length, | ||
_In_opt_ SIZE_T | Alignment, | ||
_Out_opt_ PSIZE_T | Offset | ||
) |
Appends a byte string to the end of a byte string builder string.
BytesBuilder | A byte string builder object. |
Buffer | The byte string to append. Specify NULL to simply reserve Length bytes. |
Length | The number of bytes to append. |
Alignment | The required alignment. This should not be greater than 8. |
Offset | A variable which receives the byte offset of the appended or reserved bytes in the byte string builder string. |
VOID PhAppendCharStringBuilder | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder, |
_In_ WCHAR | Character | ||
) |
VOID PhAppendCharStringBuilder2 | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder, |
_In_ WCHAR | Character, | ||
_In_ SIZE_T | Count | ||
) |
VOID PhAppendFormatStringBuilder | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder, |
_In_ _Printf_format_string_ PWSTR | Format, | ||
... | |||
) |
VOID PhAppendFormatStringBuilder_V | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder, |
_In_ _Printf_format_string_ PWSTR | Format, | ||
_In_ va_list | ArgPtr | ||
) |
VOID PhAppendStringBuilder | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder, |
_In_ PPH_STRINGREF | String | ||
) |
VOID PhAppendStringBuilder2 | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder, |
_In_ PWSTR | String | ||
) |
VOID PhAppendStringBuilderEx | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder, |
_In_opt_ PWCHAR | String, | ||
_In_ SIZE_T | Length | ||
) |
PPH_STRING PhBufferToHexString | ( | _In_reads_bytes_(Length) PUCHAR | Buffer, |
_In_ ULONG | Length | ||
) |
PPH_STRING PhBufferToHexStringEx | ( | _In_reads_bytes_(Length) PUCHAR | Buffer, |
_In_ ULONG | Length, | ||
_In_ BOOLEAN | UpperCase | ||
) |
VOID PhClearHashtable | ( | _Inout_ PPH_HASHTABLE | Hashtable | ) |
LONG PhCompareStringRef | ( | _In_ PPH_STRINGREF | String1, |
_In_ PPH_STRINGREF | String2, | ||
_In_ BOOLEAN | IgnoreCase | ||
) |
LONG PhCompareStringZNatural | ( | _In_ PWSTR | A, |
_In_ PWSTR | B, | ||
_In_ BOOLEAN | IgnoreCase | ||
) |
PPH_STRING PhConcatStringRef2 | ( | _In_ PPH_STRINGREF | String1, |
_In_ PPH_STRINGREF | String2 | ||
) |
PPH_STRING PhConcatStringRef3 | ( | _In_ PPH_STRINGREF | String1, |
_In_ PPH_STRINGREF | String2, | ||
_In_ PPH_STRINGREF | String3 | ||
) |
PPH_STRING PhConcatStrings | ( | _In_ ULONG | Count, |
... | |||
) |
PPH_STRING PhConcatStrings2 | ( | _In_ PWSTR | String1, |
_In_ PWSTR | String2 | ||
) |
PPH_STRING PhConcatStrings_V | ( | _In_ ULONG | Count, |
_In_ va_list | ArgPtr | ||
) |
PPH_STRING PhConvertMultiByteToUtf16 | ( | _In_ PSTR | Buffer | ) |
PPH_STRING PhConvertMultiByteToUtf16Ex | ( | _In_ PCHAR | Buffer, |
_In_ SIZE_T | Length | ||
) |
PPH_BYTES PhConvertUtf16ToAsciiEx | ( | _In_ PWCH | Buffer, |
_In_ SIZE_T | Length, | ||
_In_opt_ CHAR | Replacement | ||
) |
PPH_BYTES PhConvertUtf16ToMultiByte | ( | _In_ PWSTR | Buffer | ) |
PPH_BYTES PhConvertUtf16ToMultiByteEx | ( | _In_ PWCHAR | Buffer, |
_In_ SIZE_T | Length | ||
) |
BOOLEAN PhConvertUtf16ToUtf8Buffer | ( | _Out_writes_bytes_to_(MaxBytesInUtf8String,*BytesInUtf8String) PCH | Utf8String, |
_In_ SIZE_T | MaxBytesInUtf8String, | ||
_Out_opt_ PSIZE_T | BytesInUtf8String, | ||
_In_reads_bytes_(BytesInUtf16String) PWCH | Utf16String, | ||
_In_ SIZE_T | BytesInUtf16String | ||
) |
PPH_BYTES PhConvertUtf16ToUtf8Ex | ( | _In_ PWCHAR | Buffer, |
_In_ SIZE_T | Length | ||
) |
BOOLEAN PhConvertUtf16ToUtf8Size | ( | _Out_ PSIZE_T | BytesInUtf8String, |
_In_reads_bytes_(BytesInUtf16String) PWCH | Utf16String, | ||
_In_ SIZE_T | BytesInUtf16String | ||
) |
PPH_STRING PhConvertUtf8ToUtf16 | ( | _In_ PSTR | Buffer | ) |
BOOLEAN PhConvertUtf8ToUtf16Buffer | ( | _Out_writes_bytes_to_(MaxBytesInUtf16String,*BytesInUtf16String) PWCH | Utf16String, |
_In_ SIZE_T | MaxBytesInUtf16String, | ||
_Out_opt_ PSIZE_T | BytesInUtf16String, | ||
_In_reads_bytes_(BytesInUtf8String) PCH | Utf8String, | ||
_In_ SIZE_T | BytesInUtf8String | ||
) |
PPH_STRING PhConvertUtf8ToUtf16Ex | ( | _In_ PCHAR | Buffer, |
_In_ SIZE_T | Length | ||
) |
BOOLEAN PhConvertUtf8ToUtf16Size | ( | _Out_ PSIZE_T | BytesInUtf16String, |
_In_reads_bytes_(BytesInUtf8String) PCH | Utf8String, | ||
_In_ SIZE_T | BytesInUtf8String | ||
) |
BOOLEAN PhCopyBytesZ | ( | _In_ PSTR | InputBuffer, |
_In_ SIZE_T | InputCount, | ||
_Out_writes_opt_z_(OutputCount) PSTR | OutputBuffer, | ||
_In_ SIZE_T | OutputCount, | ||
_Out_opt_ PSIZE_T | ReturnCount | ||
) |
Copies a string with optional null termination and a maximum number of characters.
InputBuffer | A pointer to the input string. |
InputCount | The maximum number of characters to copy, not including the null terminator. Specify -1 for no limit. |
OutputBuffer | A pointer to the output buffer. |
OutputCount | The number of characters in the output buffer, including the null terminator. |
ReturnCount | A variable which receives the number of characters required to contain the input string, including the null terminator. If the function returns TRUE, this variable contains the number of characters written to the output buffer. |
BOOLEAN PhCopyStringZ | ( | _In_ PWSTR | InputBuffer, |
_In_ SIZE_T | InputCount, | ||
_Out_writes_opt_z_(OutputCount) PWSTR | OutputBuffer, | ||
_In_ SIZE_T | OutputCount, | ||
_Out_opt_ PSIZE_T | ReturnCount | ||
) |
Copies a string with optional null termination and a maximum number of characters.
InputBuffer | A pointer to the input string. |
InputCount | The maximum number of characters to copy, not including the null terminator. Specify -1 for no limit. |
OutputBuffer | A pointer to the output buffer. |
OutputCount | The number of characters in the output buffer, including the null terminator. |
ReturnCount | A variable which receives the number of characters required to contain the input string, including the null terminator. If the function returns TRUE, this variable contains the number of characters written to the output buffer. |
BOOLEAN PhCopyStringZFromBytes | ( | _In_ PSTR | InputBuffer, |
_In_ SIZE_T | InputCount, | ||
_Out_writes_opt_z_(OutputCount) PWSTR | OutputBuffer, | ||
_In_ SIZE_T | OutputCount, | ||
_Out_opt_ PSIZE_T | ReturnCount | ||
) |
Copies a string with optional null termination and a maximum number of characters.
InputBuffer | A pointer to the input string. |
InputCount | The maximum number of characters to copy, not including the null terminator. Specify -1 for no limit. |
OutputBuffer | A pointer to the output buffer. |
OutputCount | The number of characters in the output buffer, including the null terminator. |
ReturnCount | A variable which receives the number of characters required to contain the input string, including the null terminator. If the function returns TRUE, this variable contains the number of characters written to the output buffer. |
BOOLEAN PhCopyStringZFromMultiByte | ( | _In_ PSTR | InputBuffer, |
_In_ SIZE_T | InputCount, | ||
_Out_writes_opt_z_(OutputCount) PWSTR | OutputBuffer, | ||
_In_ SIZE_T | OutputCount, | ||
_Out_opt_ PSIZE_T | ReturnCount | ||
) |
Copies a string with optional null termination and a maximum number of characters.
InputBuffer | A pointer to the input string. |
InputCount | The maximum number of characters to copy, not including the null terminator. Specify -1 for no limit. |
OutputBuffer | A pointer to the output buffer. |
OutputCount | The number of characters in the output buffer, including the null terminator. |
ReturnCount | A variable which receives the number of characters required to contain the input string, including the null terminator. If the function returns TRUE, this variable contains the number of characters written to the output buffer. |
SIZE_T PhCountStringZ | ( | _In_ PWSTR | String | ) |
PPH_BYTES PhCreateBytes | ( | _In_ PSTR | Buffer | ) |
PPH_BYTES PhCreateBytesEx | ( | _In_opt_ PCHAR | Buffer, |
_In_ SIZE_T | Length | ||
) |
PPH_HASHTABLE PhCreateHashtable | ( | _In_ ULONG | EntrySize, |
_In_ PPH_HASHTABLE_COMPARE_FUNCTION | CompareFunction, | ||
_In_ PPH_HASHTABLE_HASH_FUNCTION | HashFunction, | ||
_In_ ULONG | InitialCapacity | ||
) |
Creates a hashtable object.
EntrySize | The size of each hashtable entry, in bytes. |
CompareFunction | A comparison function that is executed to compare two hashtable entries. |
HashFunction | A hash function that is executed to generate a hash code for a hashtable entry. |
InitialCapacity | The number of entries to allocate storage for initially. |
PPH_LIST PhCreateList | ( | _In_ ULONG | InitialCapacity | ) |
PPH_POINTER_LIST PhCreatePointerList | ( | _In_ ULONG | InitialCapacity | ) |
PPH_HASHTABLE PhCreateSimpleHashtable | ( | _In_ ULONG | InitialCapacity | ) |
PPH_STRING PhCreateString | ( | _In_ PWSTR | Buffer | ) |
PPH_STRING PhCreateStringEx | ( | _In_opt_ PWCHAR | Buffer, |
_In_ SIZE_T | Length | ||
) |
HANDLE PhCreateThread | ( | _In_opt_ SIZE_T | StackSize, |
_In_ PUSER_THREAD_START_ROUTINE | StartAddress, | ||
_In_opt_ PVOID | Parameter | ||
) |
BOOLEAN PhDecodeUnicodeDecoder | ( | _Inout_ PPH_UNICODE_DECODER | Decoder, |
_Out_ PULONG | CodePoint | ||
) |
VOID PhDeleteBytesBuilder | ( | _Inout_ PPH_BYTES_BUILDER | BytesBuilder | ) |
VOID PhDeleteCallback | ( | _Inout_ PPH_CALLBACK | Callback | ) |
VOID PhDeleteFreeList | ( | _Inout_ PPH_FREE_LIST | FreeList | ) |
VOID PhDeleteStringBuilder | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder | ) |
VOID PhDivideSinglesBySingle | ( | _Inout_updates_(Count) PFLOAT | A, |
_In_ FLOAT | B, | ||
_In_ SIZE_T | Count | ||
) |
PSTR PhDuplicateBytesZ | ( | _In_ PSTR | String | ) |
PSTR PhDuplicateBytesZSafe | ( | _In_ PSTR | String | ) |
PWSTR PhDuplicateStringZ | ( | _In_ PWSTR | String | ) |
BOOLEAN PhEncodeUnicode | ( | _In_ UCHAR | Encoding, |
_In_ ULONG | CodePoint, | ||
_Out_opt_ PVOID | CodeUnits, | ||
_Out_ PULONG | NumberOfCodeUnits | ||
) |
BOOLEAN PhEnumHashtable | ( | _In_ PPH_HASHTABLE | Hashtable, |
_Out_ PVOID * | Entry, | ||
_Inout_ PULONG | EnumerationKey | ||
) |
Enumerates the entries in a hashtable.
Hashtable | A hashtable object. |
Entry | A variable which receives a pointer to the hashtable entry. The pointer is valid until the hashtable is modified. |
EnumerationKey | A variable which is initialized to 0 before first calling this function. |
BOOLEAN PhEnumPointerListEx | ( | _In_ PPH_POINTER_LIST | PointerList, |
_Inout_ PULONG | EnumerationKey, | ||
_Out_ PVOID * | Pointer, | ||
_Out_ PHANDLE | PointerHandle | ||
) |
BOOLEAN PhEqualStringRef | ( | _In_ PPH_STRINGREF | String1, |
_In_ PPH_STRINGREF | String2, | ||
_In_ BOOLEAN | IgnoreCase | ||
) |
ULONG PhExponentiate | ( | _In_ ULONG | Base, |
_In_ ULONG | Exponent | ||
) |
ULONG64 PhExponentiate64 | ( | _In_ ULONG64 | Base, |
_In_ ULONG | Exponent | ||
) |
VOID PhFillMemoryUlong | ( | _Inout_updates_(Count) _Needs_align_(4) PULONG | Memory, |
_In_ ULONG | Value, | ||
_In_ SIZE_T | Count | ||
) |
PPH_BYTES PhFinalBytesBuilderBytes | ( | _Inout_ PPH_BYTES_BUILDER | BytesBuilder | ) |
Obtains a reference to the byte string constructed by a byte string builder object and frees resources used by the object.
BytesBuilder | A byte string builder object. |
PPH_STRING PhFinalStringBuilderString | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder | ) |
Obtains a reference to the string constructed by a string builder object and frees resources used by the object.
StringBuilder | A string builder object. |
ULONG_PTR PhFindCharInStringRef | ( | _In_ PPH_STRINGREF | String, |
_In_ WCHAR | Character, | ||
_In_ BOOLEAN | IgnoreCase | ||
) |
Locates a character in a string.
String | The string to search. |
Character | The character to search for. |
IgnoreCase | TRUE to perform a case-insensitive search, otherwise FALSE. |
PVOID PhFindEntryHashtable | ( | _In_ PPH_HASHTABLE | Hashtable, |
_In_ PVOID | Entry | ||
) |
Locates an entry in a hashtable.
Hashtable | A hashtable object. |
Entry | An entry representing the entry to find. |
HANDLE PhFindItemPointerList | ( | _In_ PPH_POINTER_LIST | PointerList, |
_In_ PVOID | Pointer | ||
) |
Locates a pointer in a pointer list.
PointerList | A pointer list object. |
Pointer | The pointer to find. The pointer must be at least 2 byte aligned. |
PVOID* PhFindItemSimpleHashtable | ( | _In_ PPH_HASHTABLE | SimpleHashtable, |
_In_opt_ PVOID | Key | ||
) |
ULONG_PTR PhFindLastCharInStringRef | ( | _In_ PPH_STRINGREF | String, |
_In_ WCHAR | Character, | ||
_In_ BOOLEAN | IgnoreCase | ||
) |
Locates a character in a string, searching backwards.
String | The string to search. |
Character | The character to search for. |
IgnoreCase | TRUE to perform a case-insensitive search, otherwise FALSE. |
ULONG_PTR PhFindStringInStringRef | ( | _In_ PPH_STRINGREF | String, |
_In_ PPH_STRINGREF | SubString, | ||
_In_ BOOLEAN | IgnoreCase | ||
) |
Locates a string in a string.
String | The string to search. |
SubString | The string to search for. |
IgnoreCase | TRUE to perform a case-insensitive search, otherwise FALSE. |
PPH_STRING PhFormatString | ( | _In_ _Printf_format_string_ PWSTR | Format, |
... | |||
) |
PPH_STRING PhFormatString_V | ( | _In_ _Printf_format_string_ PWSTR | Format, |
_In_ va_list | ArgPtr | ||
) |
VOID PhFree | ( | _Frees_ptr_opt_ PVOID | Memory | ) |
VOID PhFreePage | ( | _Frees_ptr_opt_ PVOID | Memory | ) |
Frees pages of memory allocated with PhAllocatePage().
Memory | A pointer to a block of memory. |
VOID PhFreeToFreeList | ( | _Inout_ PPH_FREE_LIST | FreeList, |
_In_ PVOID | Memory | ||
) |
ULONG PhGetPrimeNumber | ( | _In_ ULONG | Minimum | ) |
ULONG PhHashBytes | ( | _In_reads_(Length) PUCHAR | Bytes, |
_In_ SIZE_T | Length | ||
) |
ULONG PhHashStringRef | ( | _In_ PPH_STRINGREF | String, |
_In_ BOOLEAN | IgnoreCase | ||
) |
BOOLEAN PhHexStringToBuffer | ( | _In_ PPH_STRINGREF | String, |
_Out_writes_bytes_(String->Length/sizeof(WCHAR)/2) PUCHAR | Buffer | ||
) |
Converts a sequence of hexadecimal digits into a byte array.
String | A string containing hexadecimal digits to convert. The string must have an even number of digits, because each pair of hexadecimal digits represents one byte. Example: "129a2eff5c0b". |
Buffer | The output buffer. |
BOOLEAN PhInitializeBase | ( | _In_ ULONG | Flags | ) |
VOID PhInitializeBytesBuilder | ( | _Out_ PPH_BYTES_BUILDER | BytesBuilder, |
_In_ SIZE_T | InitialCapacity | ||
) |
VOID PhInitializeCallback | ( | _Out_ PPH_CALLBACK | Callback | ) |
VOID PhInitializeFreeList | ( | _Out_ PPH_FREE_LIST | FreeList, |
_In_ SIZE_T | Size, | ||
_In_ ULONG | MaximumCount | ||
) |
VOID PhInitializeStringBuilder | ( | _Out_ PPH_STRING_BUILDER | StringBuilder, |
_In_ SIZE_T | InitialCapacity | ||
) |
VOID PhInsertStringBuilder | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder, |
_In_ SIZE_T | Index, | ||
_In_ PPH_STRINGREF | String | ||
) |
VOID PhInsertStringBuilder2 | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder, |
_In_ SIZE_T | Index, | ||
_In_ PWSTR | String | ||
) |
VOID PhInsertStringBuilderEx | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder, |
_In_ SIZE_T | Index, | ||
_In_opt_ PWCHAR | String, | ||
_In_ SIZE_T | Length | ||
) |
Inserts a string into a string builder string.
StringBuilder | A string builder object. |
Index | The index, in characters, at which to insert the string. |
String | The string to insert. Specify NULL to simply reserve Length bytes at Index. |
Length | The number of bytes to insert. |
PPH_STRING PhIntegerToString64 | ( | _In_ LONG64 | Integer, |
_In_opt_ ULONG | Base, | ||
_In_ BOOLEAN | Signed | ||
) |
Converts an integer to a string.
Integer | The integer to process. |
Base | The base which the integer is represented with. The maximum value is
|
Signed | TRUE if Integer is a signed value, otherwise FALSE. |
VOID PhInvokeCallback | ( | _In_ PPH_CALLBACK | Callback, |
_In_opt_ PVOID | Parameter | ||
) |
VOID PhLocalTimeToSystemTime | ( | _In_ PLARGE_INTEGER | LocalTime, |
_Out_ PLARGE_INTEGER | SystemTime | ||
) |
Converts local time to system time.
LocalTime | A local time value. |
SystemTime | A variable which receives the UTC time value. This may be the same variable as LocalTime. |
FORCEINLINE PVOID PhpAddEntryHashtable | ( | _Inout_ PPH_HASHTABLE | Hashtable, |
_In_ PVOID | Entry, | ||
_In_ BOOLEAN | CheckForDuplicate, | ||
_Out_opt_ PBOOLEAN | Added | ||
) |
FORCEINLINE LONG PhpCompareLeftNatural | ( | _In_ PWSTR | A, |
_In_ PWSTR | B | ||
) |
FORCEINLINE LONG PhpCompareRightNatural | ( | _In_ PWSTR | A, |
_In_ PWSTR | B | ||
) |
FORCEINLINE LONG PhpCompareStringZNatural | ( | _In_ PWSTR | A, |
_In_ PWSTR | B, | ||
_In_ BOOLEAN | IgnoreCase | ||
) |
FORCEINLINE ULONG PhpDecodePointerListIndex | ( | _In_ PVOID | Index | ) |
BOOLEAN PhpDecodeUtf8Error | ( | _Inout_ PPH_UNICODE_DECODER | Decoder, |
_Out_ PULONG | CodePoint, | ||
_In_ ULONG | Which | ||
) |
FORCEINLINE PVOID PhpEncodePointerListIndex | ( | _In_ ULONG | Index | ) |
FORCEINLINE ULONG PhpGetNumberOfBuckets | ( | _In_ ULONG | Capacity | ) |
VOID PhpHashtableDeleteProcedure | ( | _In_ PVOID | Object, |
_In_ ULONG | Flags | ||
) |
FORCEINLINE ULONG PhpIndexFromHash | ( | _In_ PPH_HASHTABLE | Hashtable, |
_In_ ULONG | Hash | ||
) |
VOID PhpListDeleteProcedure | ( | _In_ PVOID | Object, |
_In_ ULONG | Flags | ||
) |
VOID NTAPI PhpPointerListDeleteProcedure | ( | _In_ PVOID | Object, |
_In_ ULONG | Flags | ||
) |
FORCEINLINE ULONG PhpPointerListHandleToIndex | ( | _In_ HANDLE | Handle | ) |
FORCEINLINE HANDLE PhpPointerListIndexToHandle | ( | _In_ ULONG | Index | ) |
VOID NTAPI PhpQueueDeleteProcedure | ( | _In_ PVOID | Object, |
_In_ ULONG | Flags | ||
) |
BOOLEAN PhpReadUnicodeDecoder | ( | _Inout_ PPH_UNICODE_DECODER | Decoder, |
_Out_ PULONG | CodeUnit | ||
) |
VOID PhpResizeBytesBuilder | ( | _In_ PPH_BYTES_BUILDER | BytesBuilder, |
_In_ SIZE_T | NewCapacity | ||
) |
VOID PhpResizeHashtable | ( | _Inout_ PPH_HASHTABLE | Hashtable, |
_In_ ULONG | NewCapacity | ||
) |
VOID PhpResizeStringBuilder | ( | _In_ PPH_STRING_BUILDER | StringBuilder, |
_In_ SIZE_T | NewCapacity | ||
) |
VOID PhPrintTimeSpan | ( | _Out_writes_(PH_TIMESPAN_STR_LEN_1) PWSTR | Destination, |
_In_ ULONG64 | Ticks, | ||
_In_opt_ ULONG | Mode | ||
) |
BOOLEAN NTAPI PhpSimpleHashtableCompareFunction | ( | _In_ PVOID | Entry1, |
_In_ PVOID | Entry2 | ||
) |
ULONG NTAPI PhpSimpleHashtableHashFunction | ( | _In_ PVOID | Entry | ) |
BOOLEAN PhpStringToInteger64 | ( | _In_ PPH_STRINGREF | String, |
_In_ ULONG | Base, | ||
_Out_ PULONG64 | Integer | ||
) |
VOID PhpUnreadUnicodeDecoder | ( | _Inout_ PPH_UNICODE_DECODER | Decoder, |
_In_ ULONG | CodeUnit | ||
) |
FORCEINLINE VOID PhpWriteNullTerminatorBytesBuilder | ( | _In_ PPH_BYTES_BUILDER | BytesBuilder | ) |
FORCEINLINE VOID PhpWriteNullTerminatorStringBuilder | ( | _In_ PPH_STRING_BUILDER | StringBuilder | ) |
VOID PhQuerySystemTime | ( | _Out_ PLARGE_INTEGER | SystemTime | ) |
VOID PhQueryTimeZoneBias | ( | _Out_ PLARGE_INTEGER | TimeZoneBias | ) |
PVOID PhReAllocateSafe | ( | _In_ PVOID | Memory, |
_In_ SIZE_T | Size | ||
) |
Re-allocates a block of memory originally allocated with PhAllocate().
Memory | A pointer to a block of memory. |
Size | The new size of the memory block, in bytes. |
PPH_STRING PhReferenceEmptyString | ( | VOID | ) |
VOID PhRegisterCallback | ( | _Inout_ PPH_CALLBACK | Callback, |
_In_ PPH_CALLBACK_FUNCTION | Function, | ||
_In_opt_ PVOID | Context, | ||
_Out_ PPH_CALLBACK_REGISTRATION | Registration | ||
) |
Registers a callback function to be notified.
Callback | A pointer to a callback object. |
Function | The callback function. |
Context | A user-defined value to pass to the callback function. |
Registration | A variable which receives registration information for the callback. Do not modify the contents of this structure and do not free the storage for this structure until you have unregistered the callback. |
VOID PhRegisterCallbackEx | ( | _Inout_ PPH_CALLBACK | Callback, |
_In_ PPH_CALLBACK_FUNCTION | Function, | ||
_In_opt_ PVOID | Context, | ||
_In_ USHORT | Flags, | ||
_Out_ PPH_CALLBACK_REGISTRATION | Registration | ||
) |
Registers a callback function to be notified.
Callback | A pointer to a callback object. |
Function | The callback function. |
Context | A user-defined value to pass to the callback function. |
Flags | A combination of flags controlling the callback. Set this parameter to 0. |
Registration | A variable which receives registration information for the callback. Do not modify the contents of this structure and do not free the storage for this structure until you have unregistered the callback. |
BOOLEAN PhRemoveEntryHashtable | ( | _Inout_ PPH_HASHTABLE | Hashtable, |
_In_ PVOID | Entry | ||
) |
Removes an entry from a hashtable.
Hashtable | A hashtable object. |
Entry | The entry to remove. |
VOID PhRemoveItemPointerList | ( | _Inout_ PPH_POINTER_LIST | PointerList, |
_In_ HANDLE | PointerHandle | ||
) |
BOOLEAN PhRemoveItemSimpleHashtable | ( | _Inout_ PPH_HASHTABLE | SimpleHashtable, |
_In_opt_ PVOID | Key | ||
) |
VOID PhRemoveStringBuilder | ( | _Inout_ PPH_STRING_BUILDER | StringBuilder, |
_In_ SIZE_T | StartIndex, | ||
_In_ SIZE_T | Count | ||
) |
ULONG PhRoundUpToPowerOfTwo | ( | _In_ ULONG | Number | ) |
BOOLEAN PhSplitStringRefAtChar | ( | _In_ PPH_STRINGREF | Input, |
_In_ WCHAR | Separator, | ||
_Out_ PPH_STRINGREF | FirstPart, | ||
_Out_ PPH_STRINGREF | SecondPart | ||
) |
Splits a string.
Input | The input string. |
Separator | The character to split at. |
FirstPart | A variable which receives the part of Input before the separator. This may be the same variable as Input. If the separator is not found in Input, this variable is set to Input. |
SecondPart | A variable which recieves the part of Input after the separator. This may be the same variable as Input. If the separator is not found in Input, this variable is set to an empty string. |
BOOLEAN PhSplitStringRefAtLastChar | ( | _In_ PPH_STRINGREF | Input, |
_In_ WCHAR | Separator, | ||
_Out_ PPH_STRINGREF | FirstPart, | ||
_Out_ PPH_STRINGREF | SecondPart | ||
) |
Splits a string at the last occurrence of a character.
Input | The input string. |
Separator | The character to split at. |
FirstPart | A variable which receives the part of Input before the separator. This may be the same variable as Input. If the separator is not found in Input, this variable is set to Input. |
SecondPart | A variable which recieves the part of Input after the separator. This may be the same variable as Input. If the separator is not found in Input, this variable is set to an empty string. |
BOOLEAN PhSplitStringRefAtString | ( | _In_ PPH_STRINGREF | Input, |
_In_ PPH_STRINGREF | Separator, | ||
_In_ BOOLEAN | IgnoreCase, | ||
_Out_ PPH_STRINGREF | FirstPart, | ||
_Out_ PPH_STRINGREF | SecondPart | ||
) |
Splits a string.
Input | The input string. |
Separator | The string to split at. |
IgnoreCase | TRUE to perform a case-insensitive search, otherwise FALSE. |
FirstPart | A variable which receives the part of Input before the separator. This may be the same variable as Input. If the separator is not found in Input, this variable is set to Input. |
SecondPart | A variable which recieves the part of Input after the separator. This may be the same variable as Input. If the separator is not found in Input, this variable is set to an empty string. |
BOOLEAN PhSplitStringRefEx | ( | _In_ PPH_STRINGREF | Input, |
_In_ PPH_STRINGREF | Separator, | ||
_In_ ULONG | Flags, | ||
_Out_ PPH_STRINGREF | FirstPart, | ||
_Out_ PPH_STRINGREF | SecondPart, | ||
_Out_opt_ PPH_STRINGREF | SeparatorPart | ||
) |
Splits a string.
Input | The input string. |
Separator | The character set, string or range to split at. |
Flags | A combination of flags.
|
FirstPart | A variable which receives the part of Input before the separator. This may be the same variable as Input. If the separator is not found in Input, this variable is set to Input. |
SecondPart | A variable which recieves the part of Input after the separator. This may be the same variable as Input. If the separator is not found in Input, this variable is set to an empty string. |
SeparatorPart | A variable which receives the part of Input that is the separator. If the separator is not found in Input, this variable is set to an empty string. |
BOOLEAN PhStringToInteger64 | ( | _In_ PPH_STRINGREF | String, |
_In_opt_ ULONG | Base, | ||
_Out_opt_ PLONG64 | Integer | ||
) |
Converts a string to an integer.
String | The string to process. |
Base | The base which the string uses to represent the integer. The maximum value is
|
Integer | The resulting integer. |
0x
Base 16. 0o
Base 8. 0b
Base 2. 0t
Base 3. 0q
Base 4. 0w
Base 12. 0r
Base 32.If there is no recognized prefix, base 10 is used.
VOID PhSystemTimeToLocalTime | ( | _In_ PLARGE_INTEGER | SystemTime, |
_Out_ PLARGE_INTEGER | LocalTime | ||
) |
Converts system time to local time.
SystemTime | A UTC time value. |
LocalTime | A variable which receives the local time value. This may be the same variable as SystemTime. |
VOID PhTrimStringRef | ( | _Inout_ PPH_STRINGREF | String, |
_In_ PPH_STRINGREF | CharSet, | ||
_In_ ULONG | Flags | ||
) |
VOID PhUnregisterCallback | ( | _Inout_ PPH_CALLBACK | Callback, |
_Inout_ PPH_CALLBACK_REGISTRATION | Registration | ||
) |
Unregisters a callback function.
Callback | A pointer to a callback object. |
Registration | The structure returned by PhRegisterCallback(). |
BOOLEAN PhWriteUnicodeDecoder | ( | _Inout_ PPH_UNICODE_DECODER | Decoder, |
_In_ ULONG | CodeUnit | ||
) |
VOID PhZeroExtendToUtf16Buffer | ( | _In_reads_bytes_(InputLength) PSTR | Input, |
_In_ SIZE_T | InputLength, | ||
_Out_writes_bytes_(InputLength *sizeof(WCHAR)) PWSTR | Output | ||
) |
PPH_STRING PhZeroExtendToUtf16Ex | ( | _In_reads_bytes_(InputLength) PCH | Input, |
_In_ SIZE_T | InputLength | ||
) |
PPH_OBJECT_TYPE PhBytesType |
PPH_OBJECT_TYPE PhHashtableType |
PPH_OBJECT_TYPE PhListType |
PPH_OBJECT_TYPE PhPointerListType |
PPH_OBJECT_TYPE PhStringType |