operating system services be created with the savekey(functionand the calling process must have se_restore_ privilege for this to work if key was returned by connectregistry()filename should be path that' relative to the remote computer openkey(keysub_key[res [sam]]opens key key is an open key or an hkey_constant sub_key is string identifying the subkey to open res is reserved integer that must be zero (the defaultsam is an integer defining the security access mask for the key the default is key_read here are the other possible values for samn key_all_access key_create_link key_create_sub_key key_enumerate_sub_keys key_execute key_notify key_query_value key_read key_set_value key_write openkeyex(same as openkey(queryinfokey(keyreturns information about key as tuple (num_subkeysnum_valueslast_modifiedin which num_subkeys is the number of subkeysnum_values is the number of valuesand last_modified is long integer containing the time of last modification time is measured from january in units of nanoseconds queryvalue(key,sub_keyreturns the unnamed value for key as string key is an open key or an hkey_constant sub_key is the name of the subkey to useif any if omittedthe function returns the value associated with key instead this function returns the data for the first value with null name howeverthe type is returned (use queryvalueex insteadqueryvalueex(keyvalue_namereturns tuple (valuetypecontaining the data value and type for key key is an open key or hkey_constant value_name is the name of the value to return the returned type is one of the integer codes as described for the enumvalue(function savekey(keyfilenamesaves key and all its subkeys to file key is an open key or predefined hkey_constant filename must not already exist and should not include filename extension furthermorethe caller must have backup privileges for the operation to succeed lib fl ff