static int __cdecl AssemblyNodeNameCompareFunction( _In_ const void *elem1, _In_ const void *elem2 ) { PDNA_NODE node1 = *(PDNA_NODE *)elem1; PDNA_NODE node2 = *(PDNA_NODE *)elem2; return PhCompareStringRef(&node1->StructureText, &node2->StructureText, TRUE); }
INT NTAPI PhpPluginsCompareFunction( _In_ PPH_AVL_LINKS Links1, _In_ PPH_AVL_LINKS Links2 ) { PPH_PLUGIN plugin1 = CONTAINING_RECORD(Links1, PH_PLUGIN, Links); PPH_PLUGIN plugin2 = CONTAINING_RECORD(Links2, PH_PLUGIN, Links); return PhCompareStringRef(&plugin1->Name, &plugin2->Name, FALSE); }