4.9.10. winreg interface

The winreg interface is used to access to the registry, either locally or remotely. The interface also contains 3 operations related to systems shutdown.

IDL (Interface Definition Language) for the winreg interface is available in Samba 4 [61].

Table 4.25. winreg operations

InterfaceOperation numberOperation nameWindows API
338cd001-2244-31f1-aaaa-900038001003 v1.0: winreg   
 0x00OpenClassesRootRegConnectRegistry
 0x01OpenCurrentUserRegConnectRegistry
 0x02OpenLocalMachineRegConnectRegistry
 0x03OpenPerformanceDataRegConnectRegistry
 0x04OpenUsersRegConnectRegistry
 0x05BaseRegCloseKeyRegCloseKey
 0x06BaseRegCreateKeyRegCreateKeyEx
 0x07BaseRegDeleteKeyRegDeleteKeyEx
 0x08BaseRegDeleteValueRegDeleteValue
 0x09BaseRegEnumKeyRegEnumKeyEx
 0x0aBaseRegEnumValueRegEnumValue
 0x0bBaseRegFlushKeyRegFlushKey
 0x0cBaseRegGetKeySecurityRegGetKeySecurity
 0x0dBaseRegLoadKeyRegLoadKey
 0x0eBaseRegNotifyChangeKeyValueRegNotifyChangeKeyValue
 0x0fBaseRegOpenKeyRegOpenKeyEx
 0x10BaseRegQueryInfoKeyRegQueryInfoKey
 0x11BaseRegQueryValueRegQueryValueEx
 0x12BaseRegReplaceKeyRegReplaceKey
 0x13BaseRegRestoreKeyRegRestoreKey
 0x14BaseRegSaveKeyRegSaveKey
 0x15BaseRegSetKeySecurityRegSetKeySecurity
> Windows 20000x16BaseRegSetValueRegSetValueEx
-0x17BaseRegUnLoadKeyRegUnloadKey
-0x18BaseInitiateSystemShutdownInitiateSystemShutdown
-0x19BaseAbortSystemShutdownAbortSystemShutdown
-0x1aBaseRegGetVersion 
-0x1bOpenCurrentConfig 
-0x1cOpenDynData 
-0x1dBaseRegQueryMultipleValuesRegQueryMultipleValues
-0x1eBaseInitiateSystemShutdownExInitiateSystemShutdownEx
> Windows XP and Windows Server 20030x1fBaseRegSaveKeyExRegSaveKeyEx
-0x20OpenPerformanceText 
-0x21OpenPerformanceNlsText 
> Windows Server 2003 SP10x22BaseRegQueryMultipleValues2 
-0x23BaseRegDeleteKeyExRegDeleteKeyEx