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.

72 lines
1.8 KiB

  1. //#--------------------------------------------------------------
  2. //
  3. // File: reportevent.h
  4. //
  5. // Synopsis: This file holds the declarations of the
  6. // CReportEvent class
  7. //
  8. //
  9. // History: 1/29/98 MKarki Created
  10. //
  11. // Copyright (C) 1997-98 Microsoft Corporation
  12. // All rights reserved.
  13. //
  14. //#--------------------------------------------------------------
  15. #ifndef _REPORTEVENT_H_
  16. #define _REPORTEVENT_H_
  17. //
  18. // here the audit log types generated by the RADIUS
  19. // protocol component
  20. //
  21. typedef enum _radiuslogtype_
  22. {
  23. RADIUS_DROPPED_PACKET = 0,
  24. RADIUS_MALFORMED_PACKET = RADIUS_DROPPED_PACKET +1,
  25. RADIUS_INVALID_CLIENT = RADIUS_MALFORMED_PACKET +1,
  26. RADIUS_LOG_PACKET = RADIUS_INVALID_CLIENT +1,
  27. RADIUS_BAD_AUTHENTICATOR = RADIUS_LOG_PACKET +1,
  28. RADIUS_UNKNOWN_TYPE = RADIUS_BAD_AUTHENTICATOR +1,
  29. RADIUS_NO_RECORD = RADIUS_UNKNOWN_TYPE +1
  30. } RADIUSLOGTYPE, *PRADIUSLOGTYPE;
  31. //
  32. // this the maximum value the the log types have
  33. //
  34. #define MAX_RADIUSLOGTYPE RADIUS_NO_RECORD
  35. class CReportEvent
  36. {
  37. public:
  38. VOID SetLogType (
  39. /*[in]*/ DWORD dwLogType,
  40. /*[in]*/ BOOL bLogValue
  41. );
  42. VOID Process (
  43. /*[in]*/ RADIUSLOGTYPE radLogType,
  44. /*[in]*/ PACKETTYPE radPacketType,
  45. /*[in]*/ DWORD dwDataSize,
  46. /*[in]*/ DWORD dwIPAddress,
  47. /*[in]*/ LPCWSTR szString,
  48. /*[in]*/ LPVOID pRawData
  49. );
  50. CReportEvent ();
  51. ~CReportEvent ();
  52. private:
  53. BOOL m_bLogMalformed;
  54. BOOL m_bLogAcct;
  55. BOOL m_bLogAuth;
  56. BOOL m_bLogAll;
  57. };
  58. #endif // _REPORTEVENT_H_