summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-10-25 11:26:02 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:32 +0100
commitcfd09eed406704e51f40010dc0de664809def4cc (patch)
tree9d1f70a6def8988c3bcea52bb73b70a82541273f
parentade07a34d9e717dff9b3775c3039e66ec2dfe69d (diff)
downloadsamba-cfd09eed406704e51f40010dc0de664809def4cc.tar.gz
samba-cfd09eed406704e51f40010dc0de664809def4cc.tar.bz2
samba-cfd09eed406704e51f40010dc0de664809def4cc.zip
r25731: Document winreg_NotifyChangeKeyValue's notify flags.
Guenther (This used to be commit 4468b1cc49bd4a92c08aeb76419abfe00791b2c2)
-rw-r--r--source4/librpc/idl/winreg.idl17
-rw-r--r--source4/torture/rpc/winreg.c5
2 files changed, 15 insertions, 7 deletions
diff --git a/source4/librpc/idl/winreg.idl b/source4/librpc/idl/winreg.idl
index d8f50990db..5d0085c969 100644
--- a/source4/librpc/idl/winreg.idl
+++ b/source4/librpc/idl/winreg.idl
@@ -19,8 +19,8 @@ import "lsa.idl", "initshutdown.idl", "security.idl";
KEY_QUERY_VALUE = 0x00001,
KEY_SET_VALUE = 0x00002,
KEY_CREATE_SUB_KEY = 0x00004,
- KEY_ENUMERATE_SUB_KEYS = 0x00008,
- KEY_NOTIFY = 0x00010,
+ KEY_ENUMERATE_SUB_KEYS = 0x00008,
+ KEY_NOTIFY = 0x00010,
KEY_CREATE_LINK = 0x00020,
KEY_WOW64_64KEY = 0x00100,
KEY_WOW64_32KEY = 0x00200
@@ -195,13 +195,20 @@ import "lsa.idl", "initshutdown.idl", "security.idl";
/******************/
/* Function: 0x0e */
+ typedef [public,bitmap32bit] bitmap {
+ REG_NOTIFY_CHANGE_NAME = 0x00000001,
+ REG_NOTIFY_CHANGE_ATTRIBUTES = 0x00000002,
+ REG_NOTIFY_CHANGE_LAST_SET = 0x00000004,
+ REG_NOTIFY_CHANGE_SECURITY = 0x00000008
+ } winreg_NotifyChangeType;
+
[public] WERROR winreg_NotifyChangeKeyValue(
[in,ref] policy_handle *handle,
- [in] uint8 watch_subtree,
- [in] uint32 notify_filter,
+ [in] boolean8 watch_subtree,
+ [in] winreg_NotifyChangeType notify_filter,
[in] uint32 unknown,
[in] winreg_String string1,
- [in] winreg_String string2,
+ [in] winreg_String string2,
[in] uint32 unknown2
);
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 4b00c03260..4c765f72a2 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -78,7 +78,7 @@ static bool test_NotifyChangeKeyValue(struct dcerpc_pipe *p,
struct winreg_NotifyChangeKeyValue r;
r.in.handle = handle;
- r.in.watch_subtree = 1;
+ r.in.watch_subtree = true;
r.in.notify_filter = 0;
r.in.unknown = r.in.unknown2 = 0;
init_winreg_String(&r.in.string1, NULL);
@@ -90,7 +90,8 @@ static bool test_NotifyChangeKeyValue(struct dcerpc_pipe *p,
if (!W_ERROR_IS_OK(r.out.result)) {
torture_comment(tctx,
- "NotifyChangeKeyValue failed - %s - not considering\n", win_errstr(r.out.result));
+ "NotifyChangeKeyValue failed - %s - not considering\n",
+ win_errstr(r.out.result));
return true;
}