Leaked source code of windows server 2003
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.

67 lines
1.5 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1997, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // InfoBase.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // This file describes the class InfoBase
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 09/09/1997 Original version.
  16. // 09/09/1998 Added PutProperty.
  17. //
  18. ///////////////////////////////////////////////////////////////////////////////
  19. #ifndef _INFOBASE_H_
  20. #define _INFOBASE_H_
  21. #include <auditor.h>
  22. #include <resource.h>
  23. #include <InfoShare.h>
  24. ///////////////////////////////////////////////////////////////////////////////
  25. //
  26. // CLASS
  27. //
  28. // InfoBase
  29. //
  30. // DESCRIPTION
  31. //
  32. // The InfoBase connects to the audit channel and maintains the
  33. // server information base in shared memory.
  34. //
  35. ///////////////////////////////////////////////////////////////////////////////
  36. class ATL_NO_VTABLE InfoBase
  37. : public Auditor,
  38. public CComCoClass<InfoBase, &__uuidof(InfoBase)>
  39. {
  40. public:
  41. IAS_DECLARE_REGISTRY(InfoBase, 1, 0, IASCoreLib)
  42. //////////
  43. // IIasComponent
  44. //////////
  45. STDMETHOD(Initialize)();
  46. STDMETHOD(Shutdown)();
  47. STDMETHOD(PutProperty)(LONG Id, VARIANT *pValue);
  48. //////////
  49. // IAuditSink
  50. //////////
  51. STDMETHOD(AuditEvent)(ULONG ulEventID,
  52. ULONG ulNumStrings,
  53. ULONG ulDataSize,
  54. wchar_t** aszStrings,
  55. byte* pRawData);
  56. protected:
  57. InfoShare info;
  58. };
  59. #endif // _INFOBASE_H_