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


  

Using Search Routines

RegistryEntrySearch, RegistryEntryPropertyMod, and RegistryEntryMod are used to search the Name Registry for entries having a specific property or set of modifiers. The set of entries to be searched is defined by a starting entry and a relationship. The relationship determines which entries relative to the starting entry are to be included in the search--children, parents, siblings, or descendants.

Follow these rules when using search routines:

Here is a typical search sequence:

  1. Get an iterator.
  2. Set the starting point if it is other than the root.
  3. Set the relationship in the first search call.
  4. Do the search call.
  5. Repeat the search call with the relationship set to kRegIterContinue.

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