diff options
author | Gerald Carter <jerry@samba.org> | 2005-04-05 17:49:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:29 -0500 |
commit | b4c720412978c0a49e11846c7cfe553d055cca1f (patch) | |
tree | 116877fbe698b0a9babb1faacab28d1b83bc1225 /source3/include | |
parent | 78355805efb1e8e3ef9a5073841275ffa80da77a (diff) | |
download | samba-b4c720412978c0a49e11846c7cfe553d055cca1f.tar.gz samba-b4c720412978c0a49e11846c7cfe553d055cca1f.tar.bz2 samba-b4c720412978c0a49e11846c7cfe553d055cca1f.zip |
r6218: * fix a segv in EnumPrinters():rpc_buffer_alloc when the caller does not provide an
RPC_BUFFER in the request
* add initial (but wire untested) support for RegRestoreKey()
(This used to be commit 22855c7aae940cc4082c231a470f612b8fc6fa0d)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/rpc_reg.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/source3/include/rpc_reg.h b/source3/include/rpc_reg.h index 9f97d49715..51f8ff8d96 100644 --- a/source3/include/rpc_reg.h +++ b/source3/include/rpc_reg.h @@ -25,19 +25,8 @@ #ifndef _RPC_REG_H /* _RPC_REG_H */ #define _RPC_REG_H +/* RPC opnum */ -/* winreg pipe defines - NOT IMPLEMENTED !! -#define _REG_UNK_01 0x01 -#define _REG_UNK_0D 0x0d -#define _REG_UNK_0E 0x0e -#define _REG_UNK_12 0x12 -#define _REG_UNK_13 0x13 -#define _REG_UNK_17 0x17 - -*/ - -/* Implemented */ #define REG_OPEN_HKCR 0x00 #define REG_OPEN_HKLM 0x02 #define REG_OPEN_HKPD 0x03 @@ -53,6 +42,7 @@ #define REG_OPEN_ENTRY 0x0f #define REG_QUERY_KEY 0x10 #define REG_INFO 0x11 +#define REG_RESTORE_KEY 0x13 #define REG_SAVE_KEY 0x14 #define REG_SET_KEY_SEC 0x15 #define REG_CREATE_VALUE 0x16 @@ -331,7 +321,20 @@ typedef struct { typedef struct { POLICY_HND pol; UNISTR4 filename; - uint32 unknown; /* 0x0000 0000 */ + uint32 flags; +} REG_Q_RESTORE_KEY; + +typedef struct { + WERROR status; /* return status */ +} REG_R_RESTORE_KEY; + + +/***********************************************/ + +typedef struct { + POLICY_HND pol; + UNISTR4 filename; + uint32 unknown; /* I'm pretty sure this is a pointer to a SEC_DESC as per MSDN */ } REG_Q_SAVE_KEY; @@ -340,7 +343,6 @@ typedef struct { } REG_R_SAVE_KEY; - /***********************************************/ typedef struct { |