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
| Interface | Operation number | Operation name | Windows API |
|---|---|---|---|
| 338cd001-2244-31f1-aaaa-900038001003 v1.0: winreg | |||
| 0x00 | OpenClassesRoot | RegConnectRegistry | |
| 0x01 | OpenCurrentUser | RegConnectRegistry | |
| 0x02 | OpenLocalMachine | RegConnectRegistry | |
| 0x03 | OpenPerformanceData | RegConnectRegistry | |
| 0x04 | OpenUsers | RegConnectRegistry | |
| 0x05 | BaseRegCloseKey | RegCloseKey | |
| 0x06 | BaseRegCreateKey | RegCreateKeyEx | |
| 0x07 | BaseRegDeleteKey | RegDeleteKeyEx | |
| 0x08 | BaseRegDeleteValue | RegDeleteValue | |
| 0x09 | BaseRegEnumKey | RegEnumKeyEx | |
| 0x0a | BaseRegEnumValue | RegEnumValue | |
| 0x0b | BaseRegFlushKey | RegFlushKey | |
| 0x0c | BaseRegGetKeySecurity | RegGetKeySecurity | |
| 0x0d | BaseRegLoadKey | RegLoadKey | |
| 0x0e | BaseRegNotifyChangeKeyValue | RegNotifyChangeKeyValue | |
| 0x0f | BaseRegOpenKey | RegOpenKeyEx | |
| 0x10 | BaseRegQueryInfoKey | RegQueryInfoKey | |
| 0x11 | BaseRegQueryValue | RegQueryValueEx | |
| 0x12 | BaseRegReplaceKey | RegReplaceKey | |
| 0x13 | BaseRegRestoreKey | RegRestoreKey | |
| 0x14 | BaseRegSaveKey | RegSaveKey | |
| 0x15 | BaseRegSetKeySecurity | RegSetKeySecurity | |
| > Windows 2000 | 0x16 | BaseRegSetValue | RegSetValueEx |
| - | 0x17 | BaseRegUnLoadKey | RegUnloadKey |
| - | 0x18 | BaseInitiateSystemShutdown | InitiateSystemShutdown |
| - | 0x19 | BaseAbortSystemShutdown | AbortSystemShutdown |
| - | 0x1a | BaseRegGetVersion | |
| - | 0x1b | OpenCurrentConfig | |
| - | 0x1c | OpenDynData | |
| - | 0x1d | BaseRegQueryMultipleValues | RegQueryMultipleValues |
| - | 0x1e | BaseInitiateSystemShutdownEx | InitiateSystemShutdownEx |
| > Windows XP and Windows Server 2003 | 0x1f | BaseRegSaveKeyEx | RegSaveKeyEx |
| - | 0x20 | OpenPerformanceText | |
| - | 0x21 | OpenPerformanceNlsText | |
| > Windows Server 2003 SP1 | 0x22 | BaseRegQueryMultipleValues2 | |
| - | 0x23 | BaseRegDeleteKeyEx | RegDeleteKeyEx |