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.

102 lines
1.6 KiB

  1. #include <wzcsapi.h>
  2. #pragma once
  3. # ifdef __cplusplus
  4. extern "C" {
  5. # endif
  6. #define MAX_RECORD_ENUM_COUNT 100
  7. #define MAX_RAW_DATA_SIZE 4096
  8. //
  9. // Component IDs
  10. //
  11. #define DBLOG_COMPID_WZCSVC 0x00000001
  12. #define DBLOG_COMPID_EAPOL 0x00000002
  13. //
  14. // Categories
  15. //
  16. #define DBLOG_CATEG_INFO 0x00000000
  17. #define DBLOG_CATEG_WARN 0x00000001
  18. #define DBLOG_CATEG_ERR 0x00000002
  19. #define DBLOG_CATEG_PACKET 0x00000003
  20. typedef struct _Wzc_Db_Record {
  21. DWORD recordid;
  22. DWORD componentid;
  23. DWORD category;
  24. FILETIME timestamp;
  25. RAW_DATA message;
  26. RAW_DATA localmac;
  27. RAW_DATA remotemac;
  28. RAW_DATA ssid;
  29. RAW_DATA context;
  30. } WZC_DB_RECORD, * PWZC_DB_RECORD;
  31. DWORD
  32. WINAPI
  33. OpenWZCDbLogSession(
  34. LPWSTR pServerName,
  35. DWORD dwVersion,
  36. PHANDLE phSession
  37. );
  38. DWORD
  39. WINAPI
  40. CloseWZCDbLogSession(
  41. HANDLE hSession
  42. );
  43. DWORD
  44. WINAPI
  45. AddWZCDbLogRecord(
  46. LPWSTR pServerName,
  47. DWORD dwVersion,
  48. PWZC_DB_RECORD pWZCRecord,
  49. LPVOID pvReserved
  50. );
  51. DWORD
  52. WINAPI
  53. EnumWZCDbLogRecords(
  54. HANDLE hSession,
  55. PWZC_DB_RECORD pTemplateRecord,
  56. PBOOL pbEnumFromStart,
  57. DWORD dwPreferredNumEntries,
  58. PWZC_DB_RECORD * ppWZCRecords,
  59. LPDWORD pdwNumRecords,
  60. LPVOID pvReserved
  61. );
  62. DWORD
  63. WINAPI
  64. FlushWZCDbLog(
  65. HANDLE hSession
  66. );
  67. DWORD WINAPI
  68. GetSpecificLogRecord(HANDLE hSession,
  69. PWZC_DB_RECORD pwzcTemplate,
  70. PWZC_DB_RECORD *ppWZCRecords,
  71. LPDWORD pdwNumRecords,
  72. LPVOID pvReserved);
  73. # ifdef __cplusplus
  74. }
  75. # endif