RegistryEntryIDCompare compares RegEntryID values to see if they are equal. It can also be used to determine if a RegEntryID value is set to an invalid state.
Boolean RegistryEntryIDCompare(
const RegEntryID *id1,
const RegEntryID *id2);
RegistryEntryIDCompare is useful for comparing two RegEntryID values to see whether they reference the same name entry as well as to check if a RegEntryID value is a valid reference. It returns true if the two ID values are equal.
If a null value is passed in either id1 or id2, RegistryEntryIDCompare compares the other ID with the initialized value returned by RegistryEntryIDInit. If both ID values are null, RegistryEntryIDCompare returns true.