Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

164 lines
4.7 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright: Microsoft Corp. 1997-1999. All rights reserved
  4. //
  5. /////////////////////////////////////////////////////////////////////////////
  6. // EventLogUtilities.idl : IDL source for EventLogUtilities.dll
  7. //
  8. // This file will be processed by the MIDL tool to
  9. // produce the type library (EventLogUtilities.tlb) and marshalling code.
  10. import "oaidl.idl";
  11. import "ocidl.idl";
  12. typedef enum eEventType
  13. {
  14. ErrorEvent = 0,
  15. WarningEvent = 1,
  16. InformationEvent = 2,
  17. AuditSuccess = 3,
  18. AuditFailure = 4
  19. } eEventType;
  20. /*
  21. EVENTLOG_ERROR_TYPE Error event
  22. EVENTLOG_WARNING_TYPE Warning event
  23. EVENTLOG_INFORMATION_TYPE Information event
  24. EVENTLOG_AUDIT_SUCCESS Success Audit event
  25. EVENTLOG_AUDIT_FAILURE Failure Audit event
  26. */
  27. [
  28. object,
  29. uuid(CACECD29-3108-4132-9A4E-53B54FFDAFA0),
  30. dual,
  31. helpstring("IView Interface"),
  32. pointer_default(unique)
  33. ]
  34. interface IView : IDispatch
  35. {
  36. [propget, id(1), helpstring("property Logs")] HRESULT Logs([out, retval] VARIANT *pVal);
  37. [propget, id(2), helpstring("property Server")] HRESULT Server([out, retval] BSTR *pVal);
  38. [propput, id(2), helpstring("property Server")] HRESULT Server([in] BSTR newVal);
  39. };
  40. [
  41. object,
  42. uuid(AAA9B130-C64E-400F-BC63-BA9C946082A6),
  43. dual,
  44. helpstring("ILogs Interface"),
  45. pointer_default(unique)
  46. ]
  47. interface ILogs : IDispatch
  48. {
  49. [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal);
  50. [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] LPUNKNOWN *pVal);
  51. [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item([in] VARIANT Index, [out, retval] VARIANT *pVal);
  52. };
  53. [
  54. object,
  55. uuid(9FC21F08-F75C-4818-B42C-8A59DB3E33E7),
  56. dual,
  57. helpstring("ILog Interface"),
  58. pointer_default(unique)
  59. ]
  60. interface ILog : IDispatch
  61. {
  62. [propget, id(1), helpstring("property Events")] HRESULT Events([out, retval] VARIANT *pVal);
  63. [propget, id(2), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal);
  64. [propget, id(3), helpstring("property Server")] HRESULT Server([out, retval] BSTR *pVal);
  65. [propput, id(3), helpstring("property Server")] HRESULT Server([in] BSTR newVal);
  66. [id(4), helpstring("method Clear")] HRESULT Clear();
  67. };
  68. [
  69. object,
  70. uuid(B70B0436-726F-4742-B08E-1AEE6D6C6AA9),
  71. dual,
  72. helpstring("IEvents Interface"),
  73. pointer_default(unique)
  74. ]
  75. interface IEvents : IDispatch
  76. {
  77. [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal);
  78. [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] LPUNKNOWN *pVal);
  79. [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item([in] long Index, [out, retval] VARIANT *pVal);
  80. };
  81. [
  82. object,
  83. uuid(5FF33202-DD46-4C30-809D-BD868D6A6D29),
  84. dual,
  85. helpstring("IEvent Interface"),
  86. pointer_default(unique)
  87. ]
  88. interface IEvent : IDispatch
  89. {
  90. [propget, id(1), helpstring("property EventID")] HRESULT EventID([out, retval] long *pVal);
  91. [propget, id(2), helpstring("property EventType")] HRESULT EventType([out, retval] eEventType *pVal);
  92. [propget, id(3), helpstring("property Category")] HRESULT Category([out, retval] long *pVal);
  93. [propget, id(4), helpstring("property Description")] HRESULT Description([out, retval] BSTR *pVal);
  94. [propget, id(5), helpstring("property Source")] HRESULT Source([out, retval] BSTR *pVal);
  95. [propget, id(6), helpstring("property User")] HRESULT User([out, retval] BSTR *pVal);
  96. [propget, id(7), helpstring("property OccurrenceTime")] HRESULT OccurrenceTime([out, retval] DATE *pVal);
  97. [propget, id(8), helpstring("property ComputerName")] HRESULT ComputerName([out, retval] BSTR *pVal);
  98. [propget, id(9), helpstring("property Data")] HRESULT Data([out, retval] VARIANT *pVal);
  99. };
  100. [
  101. uuid(B7F1CC1F-3483-414C-A88A-863290D91EBE),
  102. version(1.0),
  103. helpstring("EventLogUtilities 1.0 Type Library")
  104. ]
  105. //library EVENTLOGUTILITIESLib
  106. library EventLogUtilities
  107. {
  108. importlib("stdole32.tlb");
  109. importlib("stdole2.tlb");
  110. interface ILogs;
  111. interface IEvents;
  112. [
  113. uuid(FF184146-A804-4FB1-BDA7-1E05052C5553),
  114. helpstring("View Class")
  115. ]
  116. coclass View
  117. {
  118. [default] interface IView;
  119. };
  120. /*
  121. [
  122. uuid(AAF8E887-B70F-4F9B-89BB-520D247A8BF0),
  123. helpstring("Logs Class")
  124. ]
  125. coclass Logs
  126. {
  127. [default] interface ILogs;
  128. };
  129. */
  130. [
  131. uuid(07C97B1B-4042-4DD3-9FDD-56EC7677E30E),
  132. helpstring("Log Class")
  133. ]
  134. coclass Log
  135. {
  136. [default] interface ILog;
  137. };
  138. /*
  139. [
  140. uuid(B60CCD16-A43B-4A9A-A3C1-F51F81CCAA26),
  141. helpstring("Events Class")
  142. ]
  143. coclass Events
  144. {
  145. [default] interface IEvents;
  146. };
  147. */
  148. [
  149. uuid(32FB0C7C-96CA-4263-A1FE-215A0AF69B34),
  150. helpstring("Event Class")
  151. ]
  152. coclass Event
  153. {
  154. [default] interface IEvent;
  155. };
  156. };