Value_name is a string that names the subkey with which the value is Stores data in the value field of an open registry key. SetValueEx ( key, value_name, reserved, type, value ) ¶ The key identified by the key parameter must have been opened with This helps the registry perform efficiently. ![]() Long values (more than 2048īytes) should be stored as files with the filenames stored in the configuration Value lengths are limited by available memory. If the key specified by the sub_key parameter does not exist, the SetValue Value is a string that specifies the new value. Use the SetValueEx()įunction for support for other data types. REG_SZ, meaning only strings are supported. Type is an integer that specifies the type of the data. Sub_key is a string that names the subkey with which the value is associated. This function passes NULL for security_attributes to the API. Privileges are different than permissions – see theĬonflicts Between User Rights and Permissions documentation Possess the SeBackupPrivilege security privilege. If key represents a key on a remote computer, the path described byįile_name is relative to the remote computer. Used on file allocation table (FAT) file systems by the LoadKey() If this filename includes an extension, it cannot be Saves the specified key, and all its subkeys to the specified file.įile_name is the name of the file to save registry data to. Value_name is a string indicating the value to query. Retrieves the type and data for a specified value name associated with 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. Returns information about a key, as a tuple.Īn integer giving the number of values this If the function fails, OSError is raised.Ĭhanged in version 3.3: See above. The result is a new handle to the specified key. 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 identifies the sub_key to open. Key is an already open key, or one of the predefined 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. ![]() 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |