summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-23 00:41:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:34:22 -0500
commit7927513fef459255b4d1f54f8945c29463aa8452 (patch)
tree36fb3b1ad823afbe918fd3c596156c4b256efac9 /source4/librpc
parenteacdca99df3ff2dff90c6dd16cec86cb0c905768 (diff)
downloadsamba-7927513fef459255b4d1f54f8945c29463aa8452.tar.gz
samba-7927513fef459255b4d1f54f8945c29463aa8452.tar.bz2
samba-7927513fef459255b4d1f54f8945c29463aa8452.zip
r9495: - added an enum for winreg key types, making it easier to read the debug logs
- got rid of winreg_Time, as its just a NTTIME (This used to be commit 198aff894eb63e6731daf68474d23a2abe21fbb9)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/winreg.idl30
1 files changed, 20 insertions, 10 deletions
diff --git a/source4/librpc/idl/winreg.idl b/source4/librpc/idl/winreg.idl
index a003612a72..cfde8bfdbc 100644
--- a/source4/librpc/idl/winreg.idl
+++ b/source4/librpc/idl/winreg.idl
@@ -14,6 +14,21 @@
depends(lsa,initshutdown)
] interface winreg
{
+ typedef [v1_enum] enum {
+ REG_NONE = 0,
+ REG_SZ = 1,
+ REG_EXPAND_SZ = 2,
+ REG_BINARY = 3,
+ REG_DWORD = 4,
+ REG_DWORD_BIG_ENDIAN = 5,
+ REG_LINK = 6,
+ REG_MULTI_SZ = 7,
+ REG_RESOURCE_LIST = 8,
+ REG_FULL_RESOURCE_DESCRIPTOR = 9,
+ REG_RESOURCE_REQUIREMENTS_LIST = 10,
+ REG_QWORD = 11
+ } winreg_Type;
+
typedef [public,noejs] struct {
[value(strlen_m_term(name)*2)] uint16 name_len;
[value(strlen_m_term(name)*2)] uint16 name_size;
@@ -93,11 +108,6 @@
);
typedef struct {
- uint32 low;
- uint32 high;
- } winreg_Time;
-
- typedef struct {
/* we can't use value(strlen_m(name)*2) here as it
doesn't propogate to the length_is() property
below. Jelmer, can this be fixed? */
@@ -121,7 +131,7 @@
[in,ref] policy_handle *handle,
[in] uint32 enum_index,
[in,out,ref] winreg_StringBuf *name,
- [in,out,unique] uint32 *type,
+ [in,out,unique] winreg_Type *type,
[in,out,unique,size_is(*size),length_is(*length)] uint8 *value,
[in,out,unique] uint32 *size,
[in,out,unique] uint32 *length
@@ -190,7 +200,7 @@
[out] uint32 max_valnamelen,
[out] uint32 max_valbufsize,
[out] uint32 secdescsize,
- [out] winreg_Time last_changed_time
+ [out] NTTIME last_changed_time
);
/******************/
@@ -198,7 +208,7 @@
WERROR winreg_QueryValue(
[in,ref] policy_handle *handle,
[in] winreg_String value_name,
- [in,out] uint32 *type,
+ [in,out] winreg_Type *type,
[in,out,size_is(*size),length_is(*length)] uint8 *data,
[in,out] uint32 *size,
[in,out] uint32 *length
@@ -232,7 +242,7 @@
WERROR winreg_SetValue(
[in,ref] policy_handle *handle,
[in] winreg_String name,
- [in] uint32 type,
+ [in] winreg_Type type,
[in,size_is(size),ref] uint8 *data,
[in] uint32 size
);
@@ -283,7 +293,7 @@
typedef struct {
winreg_String *name;
- uint32 type;
+ winreg_Type type;
uint32 offset;
uint32 length;
} QueryMultipleValue;