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.

86 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. natwmi.h
  5. Abstract:
  6. This files contains declarations for the NAT's WMI code, used
  7. for firewall event logging
  8. Author:
  9. Jonathan Burstein (jonburs) 24-Jan-2000
  10. Revision History:
  11. --*/
  12. #ifndef _NAT_WMI_H_
  13. #define _NAT_WMI_H_
  14. //
  15. // Exported globals
  16. //
  17. #define NAT_WMI_CONNECTION_CREATION_EVENT 0
  18. #define NAT_WMI_CONNECTION_DELETION_EVENT 1
  19. #define NAT_WMI_PACKET_DROPPED_EVENT 2
  20. extern LONG NatWmiEnabledEvents[];
  21. //
  22. // FUNCTION PROTOTYPES
  23. //
  24. NTSTATUS
  25. NatExecuteSystemControl(
  26. PDEVICE_OBJECT DeviceObject,
  27. PIRP Irp,
  28. PBOOLEAN ShouldComplete
  29. );
  30. VOID
  31. NatInitializeWMI(
  32. VOID
  33. );
  34. VOID
  35. FASTCALL
  36. NatLogConnectionCreation(
  37. ULONG LocalAddress,
  38. ULONG RemoteAddress,
  39. USHORT LocalPort,
  40. USHORT RemotePort,
  41. UCHAR Protocol,
  42. BOOLEAN InboundConnection
  43. );
  44. VOID
  45. FASTCALL
  46. NatLogConnectionDeletion(
  47. ULONG LocalAddress,
  48. ULONG RemoteAddress,
  49. USHORT LocalPort,
  50. USHORT RemotePort,
  51. UCHAR Protocol,
  52. BOOLEAN InboundConnection
  53. );
  54. VOID
  55. FASTCALL
  56. NatLogDroppedPacket(
  57. NAT_XLATE_CONTEXT *Contextp
  58. );
  59. VOID
  60. NatShutdownWMI(
  61. VOID
  62. );
  63. #endif // _NAT_WMI_H_