summaryrefslogtreecommitdiff
path: root/source4/librpc/idl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-05-14 18:59:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:46 -0500
commit2bc3b3bcec7900cda3841af95ab08e07c3d26c9d (patch)
treee32f032dc9e7ad77d21d08f623f48b2444d5e829 /source4/librpc/idl
parentb79455e0d24690f5bdb0fc3f78376f2249289f1c (diff)
downloadsamba-2bc3b3bcec7900cda3841af95ab08e07c3d26c9d.tar.gz
samba-2bc3b3bcec7900cda3841af95ab08e07c3d26c9d.tar.bz2
samba-2bc3b3bcec7900cda3841af95ab08e07c3d26c9d.zip
r739: Implement GetNumRecords() call from eventlog pipe, including a torture test
(This used to be commit 6a254e26f17c2b3175023764c02dc73615d585d6)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r--source4/librpc/idl/eventlog.idl92
1 files changed, 76 insertions, 16 deletions
diff --git a/source4/librpc/idl/eventlog.idl b/source4/librpc/idl/eventlog.idl
index ee5bd8bba8..fbc3c23366 100644
--- a/source4/librpc/idl/eventlog.idl
+++ b/source4/librpc/idl/eventlog.idl
@@ -19,30 +19,90 @@
unistr_noterm *name;
} eventlog_String;
+ typedef struct {
+ uint32 size;
+ uint32 reserved;
+ uint32 recordnumber;
+ uint32 creationtime;
+ uint32 writetime;
+ uint32 eventnumber;
+ uint16 eventtype;
+ uint16 num_of_strings;
+ uint16 category;
+ uint16 reserved_flag;
+ uint32 closingrecord;
+ uint32 stringoffset;
+ [size_is(num_of_strings)] eventlog_String bla[*];
+ uint32 sid_length;
+ [length_is(sid_length)] dom_sid *sids;
+ uint32 data_length;
+ [length_is(data_length)] uint8 *data;
+ unistr *source_name;
+ unistr *machine_name;
+ } eventlog_Record;
+
/******************/
/* Function: 0x00 */
- NTSTATUS eventlog_OpenEventLog(
- [in] eventlog_OpenUnknown0 *unknown0,
- [in] eventlog_String source,
- [in] eventlog_String unknown1,
- [in] uint32 unknown2,
- [in] uint32 unknown3,
- [out,ref] policy_handle *handle
- );
+ NTSTATUS eventlog_Unknown0();
/******************/
/* Function: 0x01 */
- NTSTATUS eventlog_GetNumRecords(
- );
-
+ NTSTATUS eventlog_Unknown1();
+
/******************/
/* Function: 0x02 */
- NTSTATUS eventlog_ReadEventLog(
- );
+ [id(3)] NTSTATUS eventlog_CloseEventLog(
+ [in,out,ref] policy_handle *handle
+ );
+
/******************/
/* Function: 0x03 */
- NTSTATUS eventlog_CloseEventLog(
- [in,out,ref] policy_handle *handle
- );
+ NTSTATUS eventlog_Unknown3();
+
+ /******************/
+ /* Function: 0x04 */
+ NTSTATUS eventlog_GetNumRecords(
+ [in,ref] policy_handle *handle,
+ [out] uint32 number
+ );
+ /******************/
+ /* Function: 0x05 */
+ NTSTATUS eventlog_Unknown5();
+
+ /******************/
+ /* Function: 0x06 */
+ NTSTATUS eventlog_Unknown6();
+
+ /******************/
+ /* Function: 0x07 */
+ NTSTATUS eventlog_OpenEventLog(
+ [in] eventlog_OpenUnknown0 *unknown0,
+ [in] eventlog_String source,
+ [in] eventlog_String unknown1,
+ [in] uint32 unknown2,
+ [in] uint32 unknown3,
+ [out,ref] policy_handle *handle
+ );
+
+ /******************/
+ /* Function: 0x08 */
+ NTSTATUS eventlog_Unknown8();
+
+ /******************/
+ /* Function: 0x09 */
+ NTSTATUS eventlog_Unknowna();
+
+ /******************/
+ /* Function: 0x0a */
+ NTSTATUS eventlog_ReadEventLog(
+ [in,ref] policy_handle *handle,
+ [in] uint32 flags,
+ [in] uint32 offset,
+ [in,out] uint32 number_of_bytes,
+ [out,size_is(number_of_bytes),ref] uint8 *data,
+ [out] uint32 sent_size,
+ [out] uint32 real_size
+ );
+
}