def GetRegistryDefaultValue(subkey, rootkey=None):
 if (rootkey is None):
  rootkey = GetRootKey()
 return win32api.RegQueryValue(rootkey, subkey)

def GetRegistryDefaultValue ( subkey , rootkey = None ) : if ( rootkey is None ) : rootkey = GetRootKey ( ) return win32api . RegQueryValue ( rootkey , subkey )
a helper to return the default value for a key in the registry .