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.

227 lines
6.4 KiB

  1. // (c) 1998-1999 Microsoft Corporation. All rights reserved.
  2. #pragma autorecover
  3. #pragma classflags("forceupdate")
  4. Qualifier Description : ToSubClass Amended;
  5. Qualifier Values : ToSubClass Amended;
  6. Qualifier DisplayName : ToSubClass Amended;
  7. Qualifier BitValues:ToSubClass Amended ;
  8. Qualifier Aggregate : ToSubClass ;
  9. Qualifier ValueMap : ToSubClass ;
  10. Qualifier Aggregation : ToSubClass ;
  11. Qualifier ArrayType : ToSubClass ;
  12. Qualifier Association : ToInstance ToSubClass DisableOverride ;
  13. Qualifier BitMap : ToSubClass ;
  14. Qualifier CIM_Key : ToSubClass ;
  15. Qualifier CIMTYPE : ToSubClass ;
  16. Qualifier Deprecated : ToSubClass ;
  17. Qualifier Enumeration : ToSubClass ;
  18. Qualifier EnumPrivileges : ToSubClass ;
  19. Qualifier ImplementationSource : ToSubClass ;
  20. Qualifier Key : ToInstance ToSubClass DisableOverride ;
  21. Qualifier Locale : ToInstance ;
  22. Qualifier MappingStrings : ToSubClass ;
  23. Qualifier Max : ToSubClass ;
  24. Qualifier MaxLen : ToSubClass ;
  25. Qualifier Min : ToSubClass ;
  26. Qualifier ModelCorrespondence : ToSubClass ;
  27. Qualifier Not_Null : ToSubClass ;
  28. Qualifier Override : Restricted ;
  29. Qualifier Privileges : ToSubClass ;
  30. Qualifier Propagated : ToSubClass ;
  31. Qualifier provider : ToInstance ;
  32. Qualifier Range : ToSubClass ;
  33. Qualifier Read : ToSubClass ;
  34. Qualifier Schema : ToInstance ;
  35. Qualifier Singleton : ToSubClass ToInstance ;
  36. Qualifier SUBTYPE : ToSubClass ;
  37. Qualifier Units : ToSubClass ;
  38. Qualifier UUID : ToInstance ;
  39. Qualifier Volatile : ToSubClass ;
  40. Qualifier Weak : ToSubClass ;
  41. Qualifier Write : ToSubClass ;
  42. Qualifier WritePrivileges : ToSubClass ;
  43. #pragma namespace ("\\\\.\\Root\\CIMV2")
  44. instance of __Win32Provider as $SessionProv
  45. {
  46. Name = "SessionProvider";
  47. ClsId = "{6E78DAD9-E187-4d6e-BA63-760256D6F405}";
  48. HostingModel = "NetworkServiceHost";
  49. };
  50. instance of __InstanceProviderRegistration
  51. {
  52. Provider = $SessionProv;
  53. SupportsGet = TRUE;
  54. SupportsPut = TRUE;
  55. SupportsDelete = TRUE;
  56. SupportsEnumeration = TRUE;
  57. QuerySupportLevels = {"WQL:UnarySelect"};
  58. };
  59. instance of __MethodProviderRegistration
  60. {
  61. Provider = $SessionProv;
  62. };
  63. // RuleBased("Select * From "
  64. // "Win32_ServerConnection As A "
  65. // "Join "
  66. // "Win32_Share As B "
  67. // "On A.ShareName = B.Name"),
  68. [Dynamic,
  69. Provider("SessionProvider"),
  70. Description("The Win32_ConnectionShare class represents an association "
  71. "between a shared resource on the computer and the connection made to the "
  72. "shared resource."),
  73. Locale (0x409)]
  74. class Win32_ConnectionShare : CIM_Dependency {
  75. [Description ( "The Dependent property references the connection that "
  76. "was made to the shared resource."),
  77. Key]
  78. Win32_ServerConnection REF Dependent;
  79. [Description ("The Antecedent property references the shared resource "
  80. "to which the connection was made."),
  81. Key]
  82. Win32_Share REF Antecedent;
  83. };
  84. [Description("The Win32_ServerSession class represents the sessions "
  85. "that have been established with the local computer, by users "
  86. "on some remote computer."),
  87. Dynamic,
  88. Provider("SessionProvider"),
  89. Locale (0x409)]
  90. class Win32_ServerSession : CIM_LogicalElement {
  91. [Description ("The ComputerName property indicates the name "
  92. "of the computer from which the session "
  93. "is established"),
  94. Read,
  95. key ]
  96. String ComputerName;
  97. [Description ("The UserName property indicates the name of "
  98. "the user that established the session."),
  99. key]
  100. String UserName;
  101. [Description ("The ActiveTime property indicates the "
  102. "number of seconds since this session "
  103. "was established."),
  104. Units ("Seconds")]
  105. uint32 ActiveTime;
  106. [Description ("The IdleTime property indicates the "
  107. "number of seconds that the session has been idle."),
  108. Read, Units ("Seconds")]
  109. uint32 IdleTime;
  110. [Description ("The ResourcesOpened property indicates the "
  111. "number of files, devices and pipes opened "
  112. "during this session.")]
  113. uint32 ResourcesOpened;
  114. [Description ("The SessionType property indicates "
  115. "how the session was opened. Only on "
  116. "Win NT."),
  117. Values {"Guest", "NoEncryption", "Other"},
  118. ValueMap {"0", "1", "2"}]
  119. uint32 SessionType;
  120. [Description("The ClientType property indicates the "
  121. "type of the connected client.")]
  122. String ClientType;
  123. [Description("The TransportName property specifies the "
  124. "name of the transport that "
  125. "the client is using to communicate with the server")]
  126. String TransportName;
  127. };
  128. [Description("The Win32_ServerConnection class represents the "
  129. "connections made from a remote computer, "
  130. "to a shared resource on the local computer."),
  131. Dynamic,
  132. Provider("SessionProvider"),
  133. Locale (0x409)]
  134. class Win32_ServerConnection : CIM_LogicalElement
  135. {
  136. [Description ("The ConnectionID property indicates a "
  137. "unique ID for the connection.")]
  138. uint32 ConnectionID;
  139. [Description ("The ComputerName property indicates the name "
  140. "of the computer from which the connection "
  141. "is established"),
  142. Key]
  143. string ComputerName;
  144. [Description ("The UserName property indicates the name of "
  145. "the user that made a connection."),
  146. Key]
  147. string UserName;
  148. [Description ( "The ShareName property indicates the share resource "
  149. "to which the connection is established"),
  150. Key]
  151. string ShareName;
  152. [Description ("The NumberOfFiles property indicates the "
  153. "number of open files associated with "
  154. "this connection.")]
  155. uint32 NumberOfFiles;
  156. [Description ("The ActiveTime property indicates the "
  157. "number of seconds since this connection "
  158. "was established."),
  159. Units("Seconds")]
  160. uint32 ActiveTime;
  161. [Description ("The NumberOfUsers property indicates the "
  162. "number of users associated with this "
  163. "connection.")]
  164. uint32 NumberOfUsers;
  165. };
  166. [Description("The Win32_SessionConnection class represents an association "
  167. "between a session established with the local server, by a user on a remote "
  168. "machine, and the connections that depend on the session."),
  169. dynamic,
  170. provider("SessionProvider"),
  171. Locale (0x409)]
  172. class Win32_SessionConnection : CIM_Dependency {
  173. [Description ("The Dependent property references a connection "
  174. "made to a shared resource on the local server."),
  175. Key]
  176. Win32_ServerConnection REF Dependent;
  177. [Description ("The Antecedent property references the session "
  178. "established to connect to the shared resource."),
  179. Key]
  180. Win32_ServerSession REF Antecedent;
  181. };