From 649882d8d59f35cf51166bedd73c2eab4cea7e50 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 24 Aug 2005 08:31:39 +0000 Subject: r9567: fixed the winreg IDL for CreateKey, including a security descriptor. To keep it simple I just use normal IDL buffers for now, avoiding the complex methods metze used in spoolss. We might change that later Also added decoding of the security_descriptor in winreg_GetKeySecurity() in smbtorture (This used to be commit 439f34a9621e2e96329c30cfed8d78b8fdfbd8a2) --- source4/librpc/idl/winreg.idl | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) (limited to 'source4/librpc/idl') diff --git a/source4/librpc/idl/winreg.idl b/source4/librpc/idl/winreg.idl index cfde8bfdbc..a6e2d53286 100644 --- a/source4/librpc/idl/winreg.idl +++ b/source4/librpc/idl/winreg.idl @@ -83,14 +83,28 @@ /******************/ /* Function: 0x06 */ + + typedef struct { + [size_is(size),length_is(len)] uint8 *data; + uint32 size; + uint32 len; + } KeySecurityData; + + typedef struct { + uint32 length; + KeySecurityData sd; + bool8 inherit; + } winreg_SecBuf; + WERROR winreg_CreateKey( - [in,out,ref] policy_handle *handle, - [in] winreg_String key, + [in,ref] policy_handle *handle, + [in] winreg_String name, [in] winreg_String class, [in] uint32 options, - [in] uint32 access_mask, - [in,out,ref] uint32 *action_taken, - [in] sec_desc_buf *sec_desc + [in] uint32 access_required, + [in,unique] winreg_SecBuf *secdesc, + [out,ref] policy_handle *new_handle, + [in,out,unique] uint32 *action_taken ); /******************/ @@ -143,18 +157,12 @@ [in,ref] policy_handle *handle ); - typedef struct { - [size_is(size),length_is(len)] uint8 *data; - uint32 size; - uint32 len; - } KeySecurityData; - /******************/ /* Function: 0x0c */ WERROR winreg_GetKeySecurity( [in,ref] policy_handle *handle, [in] uint32 access_mask, - [in,out,ref] KeySecurityData *data + [in,out,ref] KeySecurityData *sd ); /******************/ -- cgit