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.

174 lines
3.7 KiB

  1. /*++
  2. Copyright (c) 1999-2000 Microsoft Corporation
  3. Module Name:
  4. natschma.mof
  5. Abstract:
  6. Managed Object Format file that contains descriptions of the WMI definitions
  7. (data blocks, events, methods) exposed by the NAT for firewall event logging.
  8. Author:
  9. Jonathan Burstein (jonburs) 20-Jan-2000
  10. Revision History:
  11. --*/
  12. [abstract]
  13. class MSIPNAT
  14. {
  15. };
  16. [WMI,
  17. Dynamic,
  18. Provider("WmiProv"),
  19. Locale("MS\\0x409"),
  20. Description("Connection created event (TCP/UDP only)"),
  21. guid("{6acd39eb-4cb0-486b-83fa-307aa23767b1}")]
  22. class MSIPNAT_ConnectionCreationEvent : WmiEvent
  23. {
  24. [key, read] string InstanceName;
  25. [read] boolean Active;
  26. [WmiDataId( 1 ),
  27. Description( "Local IP Address, in network byte order" )
  28. ]
  29. uint32 LocalAddress;
  30. [WmiDataId( 2 ),
  31. Description( "Remote IP Address, in network byte order" )
  32. ]
  33. uint32 RemoteAddress;
  34. [WmiDataId( 3 ),
  35. Description( "Local Port, in network byte order" )
  36. ]
  37. uint16 LocalPort;
  38. [WmiDataId( 4 ),
  39. Description( "Remote Port, in network byte order" )
  40. ]
  41. uint16 RemotePort;
  42. [WmiDataId( 5 ),
  43. Description( "IP-layer Protocol" )
  44. ]
  45. uint8 Protocol;
  46. [WmiDataId( 6 ),
  47. Description( "Inbound connection?" )
  48. ]
  49. boolean InboundConnection;
  50. };
  51. [WMI,
  52. Dynamic,
  53. Provider("WmiProv"),
  54. Locale("MS\\0x409"),
  55. Description("Connection deleted event (TCP/UDP only)"),
  56. guid("{3757e105-5437-4a6f-a263-47eb04a593ac}")]
  57. class MSIPNAT_ConnectionDeletionEvent : WmiEvent
  58. {
  59. [key, read] string InstanceName;
  60. [read] boolean Active;
  61. [WmiDataId( 1 ),
  62. Description( "Local IP Address, in network byte order" )
  63. ]
  64. uint32 LocalAddress;
  65. [WmiDataId( 2 ),
  66. Description( "Remote IP Address, in network byte order" )
  67. ]
  68. uint32 RemoteAddress;
  69. [WmiDataId( 3 ),
  70. Description( "Local Port, in network byte order" )
  71. ]
  72. uint16 LocalPort;
  73. [WmiDataId( 4 ),
  74. Description( "Remote Port, in network byte order" )
  75. ]
  76. uint16 RemotePort;
  77. [WmiDataId( 5 ),
  78. Description( "IP-layer Protocol" )
  79. ]
  80. uint8 Protocol;
  81. [WmiDataId( 6 ),
  82. Description( "Inbound connection?" )
  83. ]
  84. boolean InboundConnection;
  85. };
  86. [WMI,
  87. Dynamic,
  88. Provider("WmiProv"),
  89. Locale("MS\\0x409"),
  90. Description("Packet dropped event"),
  91. guid("{65f67abd-ecd2-4501-9b10-d48db2300e6c}")]
  92. class MSIPNAT_PacketDroppedEvent : WmiEvent
  93. {
  94. [key, read] string InstanceName;
  95. [read] boolean Active;
  96. [WmiDataId( 1 ),
  97. Description( "Source IP Address, in network byte order" )
  98. ]
  99. uint32 SourceAddress;
  100. [WmiDataId( 2 ),
  101. Description( "Destination IP Address, in network byte order" )
  102. ]
  103. uint32 DestinationAddress;
  104. [WmiDataId( 3 ),
  105. Description( "Source Identifier, in network byte order" )
  106. ]
  107. uint16 SourceIdentifier;
  108. [WmiDataId( 4 ),
  109. Description( "Destination Identifier, in network byte order" )
  110. ]
  111. uint16 DestinationIdentifier;
  112. [WmiDataId( 5 ),
  113. Description( "Total size of packet, in bytes" )
  114. ]
  115. uint32 PacketSize;
  116. [WmiDataId( 6 ),
  117. Description( "Protocol Specific Data 1" )
  118. ]
  119. uint32 ProtocolData1;
  120. [WmiDataId( 7 ),
  121. Description( "Protocol Specific Data 2" )
  122. ]
  123. uint32 ProtocolData2;
  124. [WmiDataId( 8 ),
  125. Description( "Protocol Specific Data 3" )
  126. ]
  127. uint32 ProtocolData3;
  128. [WmiDataId( 9 ),
  129. Description( "Protocol Specific Data 4" )
  130. ]
  131. uint32 ProtocolData4;
  132. [WmiDataId( 10 ),
  133. Description( "IP-layer Protocol" )
  134. ]
  135. uint8 Protocol;
  136. };
  137.