ULONG NTAPI ObjectDbHashFunction( _In_ PVOID Entry ) { PDB_OBJECT object = *(PDB_OBJECT *)Entry; return object->Tag + PhHashStringRef(&object->Key, TRUE); }
ULONG PhpServiceHashtableHashFunction( _In_ PVOID Entry ) { PPH_SERVICE_ITEM serviceItem = *(PPH_SERVICE_ITEM *)Entry; return PhHashStringRef(&serviceItem->Key, TRUE); }
ULONG NTAPI EtpDiskHashtableHashFunction( _In_ PVOID Entry ) { PET_DISK_ITEM diskItem = *(PET_DISK_ITEM *)Entry; return (HandleToUlong(diskItem->ProcessId) / 4) ^ PhHashStringRef(&diskItem->FileName->sr, TRUE); }
static ULONG PhpHashServiceNameEntry( _In_ PPHP_SERVICE_NAME_ENTRY Value ) { return PhHashStringRef(&Value->Name, TRUE); }