
Value_name is a string indicating the value to query. Retrieves the type and data for a specified value name associated with Raises an auditing event winreg.QueryValue with arguments key, sub_key, value_name. Underlying API call doesn’t return the type, so always use Retrieves the data for a key’s first value that has a NULL name. Values in the registry have name, type, and data components. Value set by the SetValue() method for the key identified by key. If this parameter is None or empty, the function retrieves the Sub_key is a string that holds the name of the subkey with which the value isĪssociated. Retrieves the unnamed value for a key, as a string. Raises an auditing event winreg.QueryInfoKey with argument key. Returns information about a key, as a tuple.Īn integer giving the number of values this Raises an auditing event winreg.OpenKey with arguments key, sub_key, access.Ĭhanged in version 3.3: See above. If the function fails, OSError is raised. The result is a new handle to the specified key. Sub_key is a string that identifies the sub_key to open. Opens the specified key, returning a handle object. OpenKeyEx ( key, sub_key, reserved = 0, access = KEY_READ ) ¶ OpenKey ( key, sub_key, reserved = 0, access = KEY_READ ) ¶ winreg. Raises an auditing event winreg.LoadKey with arguments key, sub_key, file_name. Specified in file_name is relative to the remote computer. If key is a handle returned by ConnectRegistry(), then the path Note that privileges are differentįrom permissions – see the RegLoadKey documentation for Table (FAT) file system, the filename may not have an extension.Ī call to LoadKey() fails if the calling process does not have the Have been created with the SaveKey() function. Sub_key is a string that identifies the subkey to load.įile_name is the name of the file to load registry data from.

Key is a handle returned by ConnectRegistry() or one of the constants LoadKey ( key, sub_key, file_name ) ¶Ĭreates a subkey under the specified key and stores registration information If you don’t know whether a FlushKey() call is required, it probably

Raises an auditing event winreg.OpenKey/result with argument key. Raises an auditing event winreg.CreateKey with arguments key, sub_key, access. The return value is the handle of the opened key. If the key already exists, this function opens the existing key. In thatĬase, the handle returned is the same key handle passed in to the function. If key is one of the predefined keys, sub_key may be None.

The default is zero.Īccess is an integer that specifies an access mask that describes the desired Reserved is a reserved integer, and must be zero. Sub_key is a string that names the key this method opens or creates. Key is an already open key, or one of the predefined CreateKeyEx ( key, sub_key, reserved = 0, access = KEY_WRITE ) ¶Ĭreates or opens the specified key, returning a
