PageRenderTime 78ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/wireshark-1.8.0/epan/dissectors/pidl/eventlog.idl

#
IDL | 224 lines | 141 code | 30 blank | 53 comment | 0 complexity | b4cca3fdfae6fc944c4d58e7ca2df11e MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause
  1. #include "idl_types.h"
  2. /* import "lsa.idl", "security.idl";*/
  3. /*
  4. eventlog interface definition
  5. */
  6. [ uuid("82273fdc-e32a-18c3-3f78-827929dc23ea"),
  7. version(0.0),
  8. pointer_default(unique),
  9. helpstring("Event Logger")
  10. ] interface eventlog
  11. {
  12. typedef bitmap {
  13. EVENTLOG_SEQUENTIAL_READ = 0x0001,
  14. EVENTLOG_SEEK_READ = 0x0002,
  15. EVENTLOG_FORWARDS_READ = 0x0004,
  16. EVENTLOG_BACKWARDS_READ = 0x0008
  17. } eventlogReadFlags;
  18. typedef bitmap {
  19. EVENTLOG_SUCCESS = 0x0000,
  20. EVENTLOG_ERROR_TYPE = 0x0001,
  21. EVENTLOG_WARNING_TYPE = 0x0002,
  22. EVENTLOG_INFORMATION_TYPE = 0x0004,
  23. EVENTLOG_AUDIT_SUCCESS = 0x0008,
  24. EVENTLOG_AUDIT_FAILURE = 0x0010
  25. } eventlogEventTypes;
  26. typedef struct {
  27. uint16 unknown0;
  28. uint16 unknown1;
  29. } eventlog_OpenUnknown0;
  30. typedef [public] struct {
  31. uint32 size;
  32. uint32 reserved;
  33. uint32 record_number;
  34. uint32 time_generated;
  35. uint32 time_written;
  36. uint32 event_id;
  37. uint16 event_type;
  38. uint16 num_of_strings;
  39. uint16 event_category;
  40. uint16 reserved_flags;
  41. uint32 closing_record_number;
  42. uint32 stringoffset;
  43. uint32 sid_length;
  44. uint32 sid_offset;
  45. uint32 data_length;
  46. uint32 data_offset;
  47. nstring source_name;
  48. nstring computer_name;
  49. nstring strings[num_of_strings];
  50. astring raw_data;
  51. } eventlog_Record;
  52. /******************/
  53. /* Function: 0x00 */
  54. NTSTATUS eventlog_ClearEventLogW(
  55. [in] policy_handle *handle,
  56. [in,unique] lsa_String *backupfilename
  57. );
  58. /******************/
  59. /* Function: 0x01 */
  60. NTSTATUS eventlog_BackupEventLogW(
  61. [in] policy_handle *handle,
  62. [in,unique] lsa_String *backupfilename
  63. );
  64. /******************/
  65. /* Function: 0x02 */
  66. NTSTATUS eventlog_CloseEventLog(
  67. [in,out] policy_handle *handle
  68. );
  69. /******************/
  70. /* Function: 0x03 */
  71. NTSTATUS eventlog_DeregisterEventSource(
  72. [in,out] policy_handle *handle
  73. );
  74. /******************/
  75. /* Function: 0x04 */
  76. NTSTATUS eventlog_GetNumRecords(
  77. [in] policy_handle *handle,
  78. [out,ref] uint32 *number
  79. );
  80. /******************/
  81. /* Function: 0x05 */
  82. NTSTATUS eventlog_GetOldestRecord(
  83. [in] policy_handle *handle,
  84. [out,ref] uint32 *oldest
  85. );
  86. /******************/
  87. /* Function: 0x06 */
  88. typedef struct {
  89. uint32 unknown0;
  90. uint32 unknown1;
  91. } eventlog_ChangeUnknown0;
  92. NTSTATUS eventlog_ChangeNotify(
  93. [in] policy_handle *handle,
  94. [in, ref] eventlog_ChangeUnknown0 *unknown2,
  95. [in] uint32 unknown3
  96. );
  97. /******************/
  98. /* Function: 0x07 */
  99. NTSTATUS eventlog_OpenEventLogW(
  100. [in,unique] eventlog_OpenUnknown0 *unknown0,
  101. [in] lsa_String Module,
  102. [in] lsa_String RegModuleName,
  103. [in] uint32 MajorVersion,
  104. [in] uint32 MinorVersion,
  105. [out] policy_handle *handle
  106. );
  107. /******************/
  108. /* Function: 0x08 */
  109. NTSTATUS eventlog_RegisterEventSourceW(
  110. [in,unique] eventlog_OpenUnknown0 *unknown0,
  111. [in] lsa_String logname,
  112. [in] lsa_String servername,
  113. [in] uint32 unknown2,
  114. [in] uint32 unknown3,
  115. [out] policy_handle *handle
  116. );
  117. /******************/
  118. /* Function: 0x09 */
  119. NTSTATUS eventlog_OpenBackupEventLogW(
  120. [in,unique] eventlog_OpenUnknown0 *unknown0,
  121. [in] lsa_String logname,
  122. [in] uint32 unknown2,
  123. [in] uint32 unknown3,
  124. [out] policy_handle *handle
  125. );
  126. /******************/
  127. /* Function: 0x0a */
  128. NTSTATUS eventlog_ReadEventLogW(
  129. [in] policy_handle *handle,
  130. [in] eventlogReadFlags flags,
  131. [in] uint32 offset,
  132. [in] uint32 number_of_bytes,
  133. [out,size_is(number_of_bytes)] uint8 *data,
  134. [out,ref] uint32 *sent_size,
  135. [out,ref] uint32 *real_size
  136. );
  137. /*****************/
  138. /* Function 0x0b */
  139. NTSTATUS eventlog_ReportEventW(
  140. [in] policy_handle *handle,
  141. [in] uint32 time,
  142. [in] eventlogEventTypes Type,
  143. [in] uint16 event_category,
  144. [in] uint32 event_id,
  145. [in] uint16 num_of_strings,
  146. [in] uint32 data_length,
  147. [in] lsa_String computer_name
  148. /* sid */
  149. );
  150. /*****************/
  151. /* Function 0x0c */
  152. NTSTATUS eventlog_ClearEventLogA();
  153. /******************/
  154. /* Function: 0x0d */
  155. NTSTATUS eventlog_BackupEventLogA();
  156. /*****************/
  157. /* Function 0x0e */
  158. NTSTATUS eventlog_OpenEventLogA();
  159. /*****************/
  160. /* Function 0x0f */
  161. NTSTATUS eventlog_RegisterEventSourceA();
  162. /*****************/
  163. /* Function 0x10 */
  164. NTSTATUS eventlog_OpenBackupEventLogA();
  165. /*****************/
  166. /* Function 0x11 */
  167. NTSTATUS eventlog_ReadEventLogA();
  168. /*****************/
  169. /* Function 0x12 */
  170. NTSTATUS eventlog_ReportEventA();
  171. /*****************/
  172. /* Function 0x13 */
  173. NTSTATUS eventlog_RegisterClusterSvc();
  174. /*****************/
  175. /* Function 0x14 */
  176. NTSTATUS eventlog_DeregisterClusterSvc();
  177. /*****************/
  178. /* Function 0x15 */
  179. NTSTATUS eventlog_WriteClusterEvents();
  180. /*****************/
  181. /* Function 0x16 */
  182. NTSTATUS eventlog_GetLogIntormation(
  183. [in] policy_handle *handle,
  184. [in] uint32 dwInfoLevel,
  185. [out] [size_is(cbBufSize)] char lpBuffer[*],
  186. [in] uint32 cbBufSize,
  187. [out,ref] long *cbBytesNeeded
  188. );
  189. /*****************/
  190. /* Function 0x17 */
  191. NTSTATUS eventlog_FlushEventLog(
  192. [in] policy_handle *handle
  193. );
  194. }