home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / WindowsServerTrial / server.iso / sources / install.wim / 2 / Windows / System32 / wbem / hnetcfg.mof < prev    next >
Encoding:
Text File  |  2006-09-18  |  8.2 KB  |  382 lines

  1. //+---------------------------------------------------------------------------
  2. //
  3. //  Microsoft Windows
  4. //  Copyright (C) Microsoft Corporation, 1992-2000.
  5. //
  6. //  File: HNetCfg.mof
  7. //
  8. //----------------------------------------------------------------------------
  9.  
  10. //
  11. // Namespace definition
  12. //
  13.  
  14. #pragma namespace("\\\\.\\ROOT")
  15.  
  16. instance of __NameSpace
  17. {
  18.     Name = "Microsoft";
  19. };
  20.  
  21. #pragma namespace("\\\\.\\ROOT\\Microsoft")
  22.  
  23. instance of __NameSpace
  24. {
  25.     Name = "HomeNet";
  26. };
  27.  
  28. #pragma namespace("\\\\.\\ROOT\\Microsoft\\HomeNet")
  29. #pragma autorecover
  30. #pragma classflags ("forceupdate")
  31. //
  32. // Class (schema) definitions
  33. //
  34.  
  35. /*++
  36.  
  37. Class:  HNet_Connection
  38.  
  39. Represents an item in the Network Connections folder
  40.  
  41. --*/
  42.  
  43. class HNet_Connection
  44. {
  45.     [key, read, write] string Guid;
  46.     [read, write] string Name;
  47.     [read, write] string PhonebookPath;
  48.     [read, write] boolean IsLanConnection;
  49. };
  50.  
  51. /*++
  52.  
  53. Class:  HNet_ConnectionProperties
  54.  
  55. Home networking properties of a network connection
  56.  
  57. --*/
  58.  
  59. class HNet_ConnectionProperties
  60. {
  61.     [key, read, write] HNet_Connection ref Connection;
  62.     [read, write] boolean IsFirewalled;
  63.     [read, write] boolean IsIcsPublic;
  64.     [read, write] boolean IsIcsPrivate;
  65.     [read, write] boolean IsBridgeMember;
  66.     [read, write] boolean IsBridge;
  67. };
  68.  
  69. /*++
  70.  
  71. Class: HNet_BridgeMember
  72.  
  73. Associates a bridge member connection to the bridge connection
  74. that it belongs to
  75.  
  76. --*/
  77.  
  78. [Association: ToInstance ToSubclass]
  79. class HNet_BridgeMember
  80. {
  81.     [key, read] HNet_Connection ref Bridge;
  82.     [key, read] HNet_Connection ref Member;
  83. };
  84.  
  85. /*++
  86.  
  87. Class: HNet_FirewallLoggingSettings
  88.  
  89. Global firewall logging settings
  90.  
  91. --*/
  92.  
  93. class HNet_FirewallLoggingSettings
  94. {
  95.     [key, read] string Id;
  96.     [read, write] string Path;
  97.     [read, write] uint32 MaxFileSize;
  98.     [read, write] boolean LogDroppedPackets;
  99.     [read, write] boolean LogConnections;
  100. };
  101.  
  102. /*++
  103.  
  104. Class: HNet_ResponseRange
  105.  
  106. Range of response ports, used in an application protocol definition. All
  107. properties are read-only keys, as this class is intended only for use
  108. as an embedded object within application definitions.
  109.  
  110. --*/
  111.  
  112. class HNet_ResponseRange
  113. {
  114.     [key, read] uint8 IPProtocol;
  115.     [key, read] uint16 StartPort;
  116.     [key, read] uint16 EndPort;
  117. };
  118.  
  119. /*++
  120.  
  121. Class: HNet_ApplicationProtocol
  122.  
  123. Application protocol definition
  124.  
  125. --*/
  126.  
  127. class HNet_ApplicationProtocol
  128. {
  129.     [key, read] string Id;
  130.     [read, write] string Name;
  131.     [read, write] boolean Enabled;
  132.     [read, write] boolean BuiltIn;
  133.     [read, write] uint8 OutgoingIPProtocol;
  134.     [read, write] uint16 OutgoingPort;
  135.     [read, write] uint16 ResponseCount;
  136.     [read, write] HNet_ResponseRange ResponseArray[];
  137. };
  138.  
  139. /*++
  140.  
  141. Class: HNet_PortMappingProtocol
  142.  
  143. Port mapping protocol definition
  144.  
  145. --*/
  146.  
  147. class HNet_PortMappingProtocol
  148. {
  149.     [key, read] string Id;
  150.     [read, write] string Name;
  151.     [read, write] boolean BuiltIn;
  152.     [read, write] uint8 IPProtocol;
  153.     [read, write] uint16 Port;
  154. };
  155.  
  156. #pragma deleteclass("HNet_ConnectionPortMapping", NOFAIL)
  157.  
  158. /*++
  159.  
  160. Class: HNet_ConnectionPortMapping2
  161.  
  162. Associates a port mapping to a connection
  163.  
  164. --*/
  165.  
  166. [Association: ToInstance ToSubclass]
  167. class HNet_ConnectionPortMapping2
  168. {
  169.     [key, read] HNet_Connection ref Connection;
  170.     [key, read] HNet_PortMappingProtocol ref Protocol;
  171.     [read, write] boolean Enabled;
  172.     [read, write] boolean NameActive;
  173.     [read, write] string TargetName;
  174.     [read, write] uint32 TargetIPAddress;
  175.     [read, write] uint16 TargetPort;
  176. };
  177.  
  178. /*++
  179.  
  180. Class: HNet_FwIcmpSettings
  181.  
  182. Firewall ICMP settings. Name is never exposed, and exists only because
  183. the class must have a key in order to create an instance of it. However,
  184. the name may be useful in the future if we want to pre-define different
  185. standard ICMP policies.
  186.  
  187. --*/
  188.  
  189. class HNet_FwIcmpSettings
  190. {
  191.     [key, read, write] String Name;
  192.     [read, write] boolean AllowOutboundDestinationUnreachable;
  193.     [read, write] boolean AllowOutboundSourceQuench;
  194.     [read, write] boolean AllowRedirect;
  195.     [read, write] boolean AllowInboundEchoRequest;
  196.     [read, write] boolean AllowInboundRouterRequest;
  197.     [read, write] boolean AllowOutboundTimeExceeded;
  198.     [read, write] boolean AllowOutboundParameterProblem;
  199.     [read, write] boolean AllowInboundTimestampRequest;
  200.     [read, write] boolean AllowInboundMaskRequest;
  201. };
  202.  
  203. /*++
  204.  
  205. Class: HNet_ConnectionIcmpSetting
  206.  
  207. Associates a firewall connection to its ICMP settings
  208.  
  209. --*/
  210.  
  211. [Association: ToInstance ToSubclass]
  212. class HNet_ConnectionIcmpSetting
  213. {
  214.     [key, read] HNet_Connection ref Connection;
  215.     [key, read] HNet_FwIcmpSettings ref IcmpSettings;
  216. };
  217.  
  218. /*++
  219.  
  220. Class: HNet_IcsSettings
  221.  
  222. Contains global ICS settings. Id is never exposed, and exists only because
  223. the class must have a key in order to create an instance of it.
  224.  
  225. --*/
  226.  
  227. class HNet_IcsSettings
  228. {
  229.     [key, read] string Id;
  230.     [read, write] boolean DhcpEnabled;
  231.     [read, write] boolean DnsEnabled;
  232. };
  233.  
  234. /*++
  235.  
  236. Class: HNet_BackupIpConfiguration
  237.  
  238. Used to store the original IP configuration of a connection when that
  239. connection is made ICS private.
  240.  
  241. --*/
  242.  
  243. class HNet_BackupIpConfiguration
  244. {
  245.     [key, read, write] HNet_Connection ref Connection;
  246.     [read, write] string IPAddress;
  247.     [read, write] string SubnetMask;
  248.     [read, write] string DefaultGateway;
  249.     [read, write] uint32 EnableDHCP; 
  250. };
  251.  
  252. /*++
  253.  
  254. Class: HNet_ConnectionAutoconfig
  255.  
  256. The existance of an instance of this class indicates that the autoconfig
  257. service knows about this connection.
  258.  
  259. --*/
  260.  
  261. class HNet_ConnectionAutoconfig
  262. {
  263.     [key, read, write] HNet_Connection ref Connection;
  264. };
  265.  
  266. //
  267. // Default HNet_IcsSettings
  268. //
  269.  
  270. instance of HNet_IcsSettings
  271. {
  272.     Id = "{23bc497f-13f0-47a1-9e88-048f6eefdf60}";
  273.     DhcpEnabled = TRUE;
  274.     DnsEnabled = TRUE;
  275. };
  276.  
  277. //
  278. // Default HNet_FwIcmpSettings
  279. //
  280.  
  281. instance of HNet_FwIcmpSettings
  282. {
  283.     Name = "Default";
  284.     AllowOutboundDestinationUnreachable = FALSE;
  285.     AllowOutboundSourceQuench = FALSE;
  286.     AllowRedirect = FALSE;
  287.     AllowInboundEchoRequest = FALSE;
  288.     AllowInboundRouterRequest = FALSE;
  289.     AllowOutboundTimeExceeded = FALSE;
  290.     AllowOutboundParameterProblem = FALSE;
  291.     AllowInboundTimestampRequest = FALSE;
  292.     AllowInboundMaskRequest = FALSE;
  293. };
  294.  
  295. //
  296. // Instance definitions -- default application and port
  297. // mapping entries. Note that all numerical values are
  298. // in NETWORK byte order. The names here refer to the
  299. // resource IDs in hnetcfg.dll.
  300. //
  301.  
  302. instance of HNet_PortMappingProtocol
  303. {
  304.     Id = "{230e423d-7b3a-4e6e-9d4d-91f73561364a}";
  305.     Name = "1700";
  306.     BuiltIn = TRUE;
  307.     IPProtocol = 0x6; // TCP
  308.     Port = 0x1500; // 21
  309. };
  310.  
  311. instance of HNet_PortMappingProtocol
  312. {
  313.     Id = "{f831dd6e-85d0-4f7d-8ac0-bb2099682c4e}";
  314.     Name = "1701";
  315.     BuiltIn = TRUE;
  316.     IPProtocol = 0x6; // TCP
  317.     Port = 0x1700; // 23
  318. };
  319.  
  320. instance of HNet_PortMappingProtocol
  321. {
  322.     Id = "{59e81c3b-ae09-4bc5-9ebc-7605ab74d37b}";
  323.     Name = "1702";
  324.     BuiltIn = TRUE;
  325.     IPProtocol = 0x6; // TCP
  326.     Port = 0x1900; // 25
  327. };
  328.  
  329. instance of HNet_PortMappingProtocol
  330. {
  331.     Id = "{90c8f61d-43f3-45cc-8ff0-e719748b3851}";
  332.     Name = "1703";
  333.     BuiltIn = TRUE;
  334.     IPProtocol = 0x6; // TCP
  335.     Port = 0x6e00; // 110
  336. };
  337.  
  338. instance of HNet_PortMappingProtocol
  339. {
  340.     Id = "{80be1943-684e-41b9-82e5-32b18d858a2c}";
  341.     Name = "1704";
  342.     BuiltIn = TRUE;
  343.     IPProtocol = 0x6; // TCP
  344.     Port = 0xDC00; // 220
  345. };
  346.  
  347. instance of HNet_PortMappingProtocol
  348. {
  349.     Id = "{f5c5796c-de7a-456b-891f-03a2e006e07c}";
  350.     Name = "1705";
  351.     BuiltIn = TRUE;
  352.     IPProtocol = 0x6; // TCP
  353.     Port = 0x8f00;  // 143
  354. };
  355.  
  356. instance of HNet_PortMappingProtocol
  357. {
  358.     Id = "{cd1887dd-be99-4a92-8006-e9a52db53df4}";
  359.     Name = "1706";
  360.     BuiltIn = TRUE;
  361.     IPProtocol = 0x6; // TCP
  362.     Port = 0x5000;  //80
  363. };
  364.  
  365. instance of HNet_PortMappingProtocol
  366. {
  367.     Id = "{3c6434d0-257b-4516-9222-4fa0467d67f9}";
  368.     Name = "1707";
  369.     BuiltIn = TRUE;
  370.     IPProtocol = 0x6; // TCP
  371.     Port = 0xBB01; // 443
  372. };
  373.  
  374. instance of HNet_PortMappingProtocol
  375. {
  376.     Id = "{01d925f1-cf6a-4352-8aac-b139b1a80cb4}";
  377.     Name = "1708";
  378.     BuiltIn = TRUE;
  379.     IPProtocol = 0x6; // TCP
  380.     Port = 0x3D0D; // 3389
  381. };
  382.