diff options
author | Günther Deschner <gd@samba.org> | 2008-11-20 13:29:44 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-11-20 17:15:47 +0100 |
commit | 2736650f0ca55d9d9f47e689a8848902c11ccec2 (patch) | |
tree | 305b0ad253babf554b1214e9ad901a9b1debe29a | |
parent | 70f55ddb7012f8cc44520088949bdfa4484c3a8b (diff) | |
download | samba-2736650f0ca55d9d9f47e689a8848902c11ccec2.tar.gz samba-2736650f0ca55d9d9f47e689a8848902c11ccec2.tar.bz2 samba-2736650f0ca55d9d9f47e689a8848902c11ccec2.zip |
eventlog: fill in some unknowns and use flags bitmap in IDL.
Guenther
-rw-r--r-- | librpc/idl/eventlog.idl | 8 | ||||
-rw-r--r-- | source4/torture/rpc/eventlog.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/librpc/idl/eventlog.idl b/librpc/idl/eventlog.idl index ce25dd65ff..bab4cb90c7 100644 --- a/librpc/idl/eventlog.idl +++ b/librpc/idl/eventlog.idl @@ -11,7 +11,7 @@ import "lsa.idl", "security.idl"; helpstring("Event Logger") ] interface eventlog { - typedef bitmap { + typedef [bitmap32bit] bitmap { EVENTLOG_SEQUENTIAL_READ = 0x0001, EVENTLOG_SEEK_READ = 0x0002, EVENTLOG_FORWARDS_READ = 0x0004, @@ -100,8 +100,8 @@ import "lsa.idl", "security.idl"; [in,unique] eventlog_OpenUnknown0 *unknown0, [in,ref] lsa_String *logname, [in,ref] lsa_String *servername, - [in] uint32 unknown2, - [in] uint32 unknown3, + [in] uint32 major_version, + [in] uint32 minor_version, [out] policy_handle *handle ); @@ -117,7 +117,7 @@ import "lsa.idl", "security.idl"; /* Function: 0x0a */ NTSTATUS eventlog_ReadEventLogW( [in] policy_handle *handle, - [in] uint32 flags, + [in] eventlogReadFlags flags, [in] uint32 offset, [in] [range(0,0x7FFFF)] uint32 number_of_bytes, [out,ref,size_is(number_of_bytes)] uint8 *data, diff --git a/source4/torture/rpc/eventlog.c b/source4/torture/rpc/eventlog.c index 31d91c056b..e89cdd3ea9 100644 --- a/source4/torture/rpc/eventlog.c +++ b/source4/torture/rpc/eventlog.c @@ -50,8 +50,8 @@ static bool get_policy_handle(struct torture_context *tctx, init_lsa_String(&servername, NULL); r.in.logname = &logname; r.in.servername = &servername; - r.in.unknown2 = 0x00000001; - r.in.unknown3 = 0x00000001; + r.in.major_version = 0x00000001; + r.in.minor_version = 0x00000001; r.out.handle = handle; torture_assert_ntstatus_ok(tctx, |