(key,name,default='')
Read a value for name from the registry key.

        In case this fails, default is returned.
Read a value for name from the registry key.
Read a value for name from the registry key .
def _win32_getvalue(key,name,default=''):

    """ Read a value for name from the registry key.

        In case this fails, default is returned.

    """
    try:
        # Use win32api if available
        from win32api import RegQueryValueEx
    except ImportError:
        # On Python 2.0 and later, emulate using _winreg
        import _winreg
        RegQueryValueEx = _winreg.QueryValueEx
    try:
        return RegQueryValueEx(key,name)
    except:
        return default
def _win32_getvalue ( key , name , default = '' ) : try : # Use win32api if available from win32api import RegQueryValueEx except ImportError : # On Python 2.0 and later, emulate using _winreg import _winreg RegQueryValueEx = _winreg . QueryValueEx try : return RegQueryValueEx ( key , name ) except : return default