PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

RegistryEntryIDCompare

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);
--> id1
Pointer to the first identifier.
--> id2
Pointer to the second identifier.
DESCRIPTION

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.

EXECUTION CONTEXT

RegistryEntryIDCompare may be called from any execution level.

RESULT CODES
false 0 ID values different
true 1 ID values equal

© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)