summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>1999-05-03 21:52:29 +0000
committerJean-François Micouleau <jfm@samba.org>1999-05-03 21:52:29 +0000
commit60c211a3abd5eadb359db5f02941f32e2d881e52 (patch)
tree9372eb8073495bc12c2fac159247753e2693e685 /source3/include
parente3a888d5a935047367e531321981cbed8618c5a3 (diff)
downloadsamba-60c211a3abd5eadb359db5f02941f32e2d881e52.tar.gz
samba-60c211a3abd5eadb359db5f02941f32e2d881e52.tar.bz2
samba-60c211a3abd5eadb359db5f02941f32e2d881e52.zip
Added a new command to rpcclient: eventlog <log> where <log> is System,
Security or Application. That's a crude equivalent to the eventviewer. Jean Francois (This used to be commit 66b4b896fbcabb964a427d0c0aa2f57997e0f6bb)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/rpc_eventlog.h133
1 files changed, 133 insertions, 0 deletions
diff --git a/source3/include/rpc_eventlog.h b/source3/include/rpc_eventlog.h
new file mode 100644
index 0000000000..cc4d9fc62d
--- /dev/null
+++ b/source3/include/rpc_eventlog.h
@@ -0,0 +1,133 @@
+/*
+ Unix SMB/Netbios implementation.
+ Version 1.9.
+ Interface header: Scheduler service
+ Copyright (C) Luke Kenneth Casson Leighton 1996-1999
+ Copyright (C) Andrew Tridgell 1992-1999
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef _RPC_EVENTLOG_H
+#define _RPC_EVENTLOG_H
+
+#define EVENTLOG_OPEN 0x07
+#define EVENTLOG_CLOSE 0x02
+#define EVENTLOG_NUMOFEVENTLOGRECORDS 0x04
+#define EVENTLOG_READEVENTLOG 0x0a
+
+#define EVENTLOG_READ_SEQUENTIAL 0x01
+#define EVENTLOG_READ_SEEK 0x02
+#define EVENTLOG_READ_FORWARD 0x04
+#define EVENTLOG_READ_BACKWARD 0x08
+
+#define EVENTLOG_OK 0X00
+#define EVENTLOG_ERROR 0x01
+#define EVENTLOG_WARNING 0x02
+#define EVENTLOG_INFORMATION 0x04
+#define EVENTLOG_AUDIT_OK 0x08
+#define EVENTLOG_AUDIT_ERROR 0x10
+
+typedef struct eventlogrecord
+{
+ 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;
+ uint32 sid_length;
+ uint32 sid_offset;
+ uint32 data_length;
+ uint32 data_offset;
+ UNISTR sourcename;
+ UNISTR computername;
+ UNISTR sid;
+ UNISTR strings;
+ UNISTR data;
+ uint32 size2;
+} EVENTLOGRECORD;
+
+typedef struct eventlog_q_open
+{
+ uint32 ptr0;
+
+ uint16 unk0;
+ uint16 unk1;
+ uint16 unk2;
+ uint16 unk3;
+
+ uint32 ptr_source;
+
+ UNISTR2 source;
+
+ uint32 unk4;
+ uint32 unk5;
+ uint32 unk6;
+ uint32 unk7;
+} EVENTLOG_Q_OPEN;
+
+typedef struct eventlog_r_open
+{
+ POLICY_HND pol;
+ uint32 status;
+} EVENTLOG_R_OPEN;
+
+typedef struct eventlog_q_close
+{
+ POLICY_HND pol;
+} EVENTLOG_Q_CLOSE;
+
+typedef struct eventlog_r_close
+{
+ POLICY_HND pol;
+ uint32 status;
+} EVENTLOG_R_CLOSE;
+
+typedef struct eventlog_q_numofeventlogrec
+{
+ POLICY_HND pol;
+} EVENTLOG_Q_NUMOFEVENTLOGREC;
+
+typedef struct eventlog_r_numofeventlogrec
+{
+ uint32 number;
+ uint32 status;
+} EVENTLOG_R_NUMOFEVENTLOGREC;
+
+typedef struct eventlog_q_readeventlog
+{
+ POLICY_HND pol;
+ uint32 flags;
+ uint32 offset;
+ uint32 number_of_bytes;
+} EVENTLOG_Q_READEVENTLOG;
+
+typedef struct eventlog_r_readeventlog
+{
+ uint32 number_of_bytes;
+ EVENTLOGRECORD *event;
+ uint32 sent_size;
+ uint32 real_size;
+ uint32 status;
+} EVENTLOG_R_READEVENTLOG;
+
+#endif /* _RPC_EVENTLOG_H */