Logo Search packages:      
Sourcecode: samba-gtk version File versions  Download package

def sambagtk::pygwregedit::WinRegPipeManager::get_subkeys_for_key (   self,
  key 
)
this function gets a list subkeys for 'key'

returns subkey_list

Definition at line 178 of file pygwregedit.py.

                                      :
        """this function gets a list subkeys for 'key'
        
        returns subkey_list"""
        
        subkey_list = []
        path_handles = self.open_path(key)
        key_handle = path_handles[-1]
        blank_buff = WinRegPipeManager.winreg_string_buf("")
        index = 0
        
        while True: #get a list of subkeys
            try:
                (subkey_name, 
                 subkey_class, 
                 subkey_changed_time) = self.pipe.EnumKey(key_handle, index, blank_buff, blank_buff, None)
                
                subkey = RegistryKey(subkey_name.name, key)
                subkey_list.append(subkey)
                
                index += 1

            except RuntimeError as re:
                if (re.args[0] == 0x103): #0x103 is WERR_NO_MORE_ITEMS, so we're done
                    break
                else:
                    raise re

        self.close_path(path_handles)
        
        return subkey_list
    

Generated by  Doxygen 1.6.0   Back to index