RegistryEntryIterateCreate creates an iterator named cookie that is used by iterate and search routines. The iterator is initialized to the default starting entry root and to the relationship kRegIterDescendants, so it can be used to access the whole Name Registry.
OSStatus RegistryEntryIterateCreate (RegEntryIter *cookie);
RegistryEntryIterateCreate sets up the iteration process for finding device names in the Name Registry and returns an iterator in cookie that is used by RegistryEntryIterate or RegistryEntrySearch.