diff options
author | Günther Deschner <gd@samba.org> | 2010-03-11 20:20:48 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-03-11 20:23:47 +0100 |
commit | e0d85f87b7a6a3c887bc0a7f93b26380369e269c (patch) | |
tree | 5192a92cf2f0f24d8bd85d6ce05333697566057e /librpc/gen_ndr/winreg.h | |
parent | 96a38e387e9655b14504c0c3d181db95cc84cc3d (diff) | |
download | samba-e0d85f87b7a6a3c887bc0a7f93b26380369e269c.tar.gz samba-e0d85f87b7a6a3c887bc0a7f93b26380369e269c.tar.bz2 samba-e0d85f87b7a6a3c887bc0a7f93b26380369e269c.zip |
winreg: add winreg_KeyType enum.
Guenther
Diffstat (limited to 'librpc/gen_ndr/winreg.h')
-rw-r--r-- | librpc/gen_ndr/winreg.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/librpc/gen_ndr/winreg.h b/librpc/gen_ndr/winreg.h index 53d9a35b62..64d978f321 100644 --- a/librpc/gen_ndr/winreg.h +++ b/librpc/gen_ndr/winreg.h @@ -42,6 +42,21 @@ struct winreg_SecBuf { uint8_t inherit; }; +enum winreg_KeyType +#ifndef USE_UINT_ENUMS + { + REG_KEYTYPE_NON_VOLATILE=(int)(0x00000000), + REG_KEYTYPE_VOLATILE=(int)(0x00000001), + REG_KEYTYPE_SYMLINK=(int)(0x00000002) +} +#else + { __donnot_use_enum_winreg_KeyType=0x7FFFFFFF} +#define REG_KEYTYPE_NON_VOLATILE ( 0x00000000 ) +#define REG_KEYTYPE_VOLATILE ( 0x00000001 ) +#define REG_KEYTYPE_SYMLINK ( 0x00000002 ) +#endif +; + enum winreg_CreateAction #ifndef USE_UINT_ENUMS { @@ -177,7 +192,7 @@ struct winreg_CreateKey { struct policy_handle *handle;/* [ref] */ struct winreg_String name; struct winreg_String keyclass; - uint32_t options; + enum winreg_KeyType options; uint32_t access_mask; struct winreg_SecBuf *secdesc;/* [unique] */ enum winreg_CreateAction *action_taken;/* [unique] */ @@ -323,7 +338,7 @@ struct winreg_OpenKey { struct { struct policy_handle *parent_handle;/* [ref] */ struct winreg_String keyname; - uint32_t unknown; + enum winreg_KeyType options; uint32_t access_mask; } in; |