r6620: the type 23 schannel bind uses a workstation name, not an account name
[samba.git] / source / librpc / idl / eventlog.idl
1 #include "idl_types.h"
2
3 /*
4   eventlog interface definition
5 */
6 [ uuid("82273fdc-e32a-18c3-3f78-827929dc23ea"),
7   version(0.0),
8   depends(security),
9   pointer_default(unique),
10   helpstring("Event Logger")
11 ] interface eventlog
12 {
13         typedef struct {
14                 uint16 unknown0;
15                 uint16 unknown1;
16         } eventlog_OpenUnknown0;
17
18         typedef struct {
19                 [value(2*strlen_m(r->name))] uint16 name_len;
20                 [value(r->name_len)]       uint16 name_size;
21                 unistr_noterm *name;
22         } eventlog_String;
23
24         typedef struct { 
25                 uint32 size;
26                 uint32 reserved;
27                 uint32 recordnumber;
28                 uint32 creationtime;
29                 uint32 writetime;
30                 uint32 eventnumber;
31                 uint16 eventtype;
32                 uint16 num_of_strings;
33                 uint16 category;
34                 uint16 reserved_flag;
35                 uint32 closingrecord;
36                 uint32 stringoffset;
37                 [size_is(num_of_strings)] eventlog_String bla[*];
38                 uint32 sid_length;
39                 [length_is(sid_length)] dom_sid *sids[];
40                 uint32 data_length;
41                 [length_is(data_length)] uint8 *data[];
42                 unistr *source_name;
43                 unistr *machine_name;
44         } eventlog_Record;
45
46         /******************/
47         /* Function: 0x00 */
48         NTSTATUS eventlog_ClearEventLogW();
49
50         /******************/
51         /* Function: 0x01 */
52         NTSTATUS eventlog_BackupEventLogW();
53         
54         /******************/
55         /* Function: 0x02 */
56         [id(3)] NTSTATUS eventlog_CloseEventLog(
57                                                                         [in,out,ref]     policy_handle *handle
58                                                                    );
59
60
61         /******************/
62         /* Function: 0x03 */
63         NTSTATUS eventlog_DeregisterEventSource();
64
65         /******************/
66         /* Function: 0x04 */
67         NTSTATUS eventlog_GetNumRecords(
68                                                                         [in,ref]     policy_handle *handle,
69                                                                         [out]            uint32 number
70                                                                    );
71         /******************/
72         /* Function: 0x05 */
73         NTSTATUS eventlog_GetOldestRecord();
74
75         /******************/
76         /* Function: 0x06 */
77         NTSTATUS eventlog_ChangeNotify();
78
79         /******************/
80         /* Function: 0x07 */
81         NTSTATUS eventlog_OpenEventLogW(
82                                                                    [in]     eventlog_OpenUnknown0 *unknown0,
83                                                                    [in]     eventlog_String source,
84                                                                    [in]     eventlog_String unknown1,
85                                                                    [in]     uint32 unknown2,
86                                                                    [in]     uint32 unknown3,
87                                                                    [out,ref]   policy_handle *handle
88                                                                   );
89
90         /******************/
91         /* Function: 0x08 */
92         NTSTATUS eventlog_RegisterEventSourceW();
93
94         /******************/
95         /* Function: 0x09 */
96         NTSTATUS eventlog_OpenBackupEventLogW();
97
98         /******************/
99         /* Function: 0x0a */
100         NTSTATUS eventlog_ReadEventLogW(
101                                                                    [in,ref]     policy_handle *handle,
102                                                                    [in]                 uint32 flags,
103                                                                    [in]                 uint32 offset,
104                                                                    [in,out]             uint32 number_of_bytes,
105                                                                    [out,ref,size_is(number_of_bytes)]           uint8 *data[],
106                                                                    [out]                uint32 sent_size,
107                                                                    [out]                uint32 real_size
108                                                                   );
109
110         /*****************/
111         /* Function 0x0b */
112         NTSTATUS eventlog_ReportEventW();
113
114         /*****************/
115         /* Function 0x0c */
116         NTSTATUS eventlog_ClearEventLogA();
117         
118         /******************/
119         /* Function: 0x0d */
120         NTSTATUS eventlog_BackupEventLogA();
121
122         /*****************/
123         /* Function 0x0e */
124         NTSTATUS eventlog_OpenEventLogA();
125
126         /*****************/
127         /* Function 0x0f */
128         NTSTATUS eventlog_RegisterEventSourceA();
129
130         /*****************/
131         /* Function 0x10 */
132         NTSTATUS eventlog_OpenBackupEventLogA();
133
134         /*****************/
135         /* Function 0x11 */
136         NTSTATUS eventlog_ReadEventLogA();
137
138         /*****************/
139         /* Function 0x12 */
140         NTSTATUS eventlog_ReportEventA();
141
142         /*****************/
143         /* Function 0x13 */
144         NTSTATUS eventlog_RegisterClusterSvc();
145
146         /*****************/
147         /* Function 0x14 */
148         NTSTATUS eventlog_DeregisterClusterSvc();
149
150         /*****************/
151         /* Function 0x15 */
152         NTSTATUS eventlog_WriteClusterEvents();
153
154         /*****************/
155         /* Function 0x16 */
156         NTSTATUS eventlog_GetLogIntormation();
157
158         /*****************/
159         /* Function 0x17 */
160         NTSTATUS eventlog_FlushEventLog();
161         
162 }