2 * Unix SMB/CIFS implementation.
3 * RPC Pipe client / server routines
4 * Copyright (C) Marcin Krzysztof Porwit 2005.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef _RPC_EVENTLOG_H /* _RPC_EVENTLOG_H */
22 #define _RPC_EVENTLOG_H
26 #define EVENTLOG_CLEAREVENTLOG 0x00
27 #define EVENTLOG_CLOSEEVENTLOG 0x02
28 #define EVENTLOG_GETNUMRECORDS 0x04
29 #define EVENTLOG_GETOLDESTENTRY 0x05
30 #define EVENTLOG_OPENEVENTLOG 0x07
31 #define EVENTLOG_READEVENTLOG 0x0a
33 /* Eventlog read flags */
35 #define EVENTLOG_SEQUENTIAL_READ 0x0001
36 #define EVENTLOG_SEEK_READ 0x0002
37 #define EVENTLOG_FORWARDS_READ 0x0004
38 #define EVENTLOG_BACKWARDS_READ 0x0008
42 #define EVENTLOG_SUCCESS 0x0000
43 #define EVENTLOG_ERROR_TYPE 0x0001
44 #define EVENTLOG_WARNING_TYPE 0x0002
45 #define EVENTLOG_INFORMATION_TYPE 0x0004
46 #define EVENTLOG_AUDIT_SUCCESS 0x0008
47 #define EVENTLOG_AUDIT_FAILURE 0x0010
50 typedef struct eventlog_q_open_eventlog
55 uint16 sourcename_length
;
56 uint16 sourcename_size
;
57 uint32 sourcename_ptr
;
59 uint32 servername_ptr
;
62 EVENTLOG_Q_OPEN_EVENTLOG
;
64 typedef struct eventlog_r_open_eventlog
69 EVENTLOG_R_OPEN_EVENTLOG
;
71 typedef struct eventlog_q_close_eventlog
75 EVENTLOG_Q_CLOSE_EVENTLOG
;
77 typedef struct eventlog_r_close_eventlog
82 EVENTLOG_R_CLOSE_EVENTLOG
;
84 typedef struct eventlog_q_get_num_records
88 EVENTLOG_Q_GET_NUM_RECORDS
;
90 typedef struct eventlog_r_get_num_records
95 EVENTLOG_R_GET_NUM_RECORDS
;
97 typedef struct eventlog_q_get_oldest_entry
101 EVENTLOG_Q_GET_OLDEST_ENTRY
;
103 typedef struct eventlog_r_get_oldest_entry
108 EVENTLOG_R_GET_OLDEST_ENTRY
;
110 typedef struct eventlog_q_read_eventlog
115 uint32 max_read_size
;
117 EVENTLOG_Q_READ_EVENTLOG
;
119 typedef struct eventlog_record
123 uint32 record_number
;
124 uint32 time_generated
;
129 uint16 event_category
;
131 uint32 closing_record_number
;
132 uint32 string_offset
;
133 uint32 user_sid_length
;
134 uint32 user_sid_offset
;
139 typedef struct eventlog_data_record
141 uint32 source_name_len
;
142 wpstring source_name
;
143 uint32 computer_name_len
;
144 wpstring computer_name
;
149 uint32 user_data_len
;
152 } Eventlog_data_record
;
154 typedef struct eventlog_entry
156 Eventlog_record record
;
157 Eventlog_data_record data_record
;
159 uint8
*end_of_data_padding
;
160 struct eventlog_entry
*next
;
163 typedef struct eventlog_r_read_eventlog
165 uint32 num_bytes_in_resp
;
166 uint32 bytes_in_next_record
;
168 Eventlog_entry
*entry
;
169 uint8
*end_of_entries_padding
;
174 EVENTLOG_R_READ_EVENTLOG
;
176 typedef struct eventlog_q_clear_eventlog
180 uint16 backup_file_length
;
181 uint16 backup_file_size
;
182 uint32 backup_file_ptr
;
185 EVENTLOG_Q_CLEAR_EVENTLOG
;
187 typedef struct eventlog_r_clear_eventlog
191 EVENTLOG_R_CLEAR_EVENTLOG
;
193 #endif /* _RPC_EVENTLOG_H */