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.

239 lines
6.5 KiB

  1. //===================================================================
  2. // TsSdWmi.MOF
  3. // Copyright (C) 2001 Microsoft Corp.
  4. // Generated by Microsoft WBEM Code Generation Engine
  5. //
  6. // TO DO: If this class is intended to be created in a namespace
  7. // other than the default (root\default), you should add
  8. // the #pragma namespace command here. If these classes
  9. // are going into your own namespace, consider creating
  10. // the namespace here as well. See CIMWIN32.MOF for an
  11. // example of how to create a namespace. Also, consider
  12. // combining this mof with the mof the defines the class
  13. // that this provider provides.
  14. //
  15. //===================================================================
  16. #pragma autorecover
  17. #pragma classflags("forceupdate")
  18. Qualifier Description : ToSubClass Amended;
  19. Qualifier Values : ToSubClass Amended;
  20. #pragma namespace ("\\\\.\\Root\\cimv2")
  21. #pragma deleteclass("Win32_SessionDirectoryCluster", NOFAIL)
  22. #pragma deleteclass("Win32_SessionDirectoryServer", NOFAIL)
  23. #pragma deleteclass("Win32_SessionDirectorySession", NOFAIL)
  24. //*************************************************************
  25. //*** Registers Framework Provider ***
  26. //*************************************************************
  27. //SessionDirectoryCluster
  28. instance of __Win32Provider as $P
  29. {
  30. Name = "Win32_WIN32_SESSIONDIRECTORYCLUSTER_Prov";
  31. ClsId = "{BF258E47-A172-498d-971A-DA30A3301E94}";
  32. HostingModel = "NetworkServiceHost";
  33. };
  34. instance of __InstanceProviderRegistration
  35. {
  36. Provider = $P;
  37. SupportsGet = TRUE;
  38. //SupportsPut = TRUE;
  39. //SupportsDelete = TRUE;
  40. SupportsEnumeration = TRUE;
  41. QuerySupportLevels = {"WQL:UnarySelect"};
  42. };
  43. instance of __MethodProviderRegistration
  44. {
  45. Provider = $P;
  46. };
  47. [dynamic, provider("Win32_WIN32_SESSIONDIRECTORYCLUSTER_Prov"),
  48. Description("The Win32_SessionDirectoryCluster class defines the query for SessionDirectoryCluster. "
  49. "This includes capabilities such as NumberOfServers.")]
  50. class Win32_SessionDirectoryCluster
  51. {
  52. [key, read,
  53. Description ( "Name of the Session Directory Cluster machine whose properties are of interest.")
  54. ]
  55. string ClusterName;
  56. [read,
  57. Description ( "Number of servers in the cluster")
  58. ]
  59. uint32 NumberOfServers;
  60. [read,
  61. Description ( "Single session mode of the cluster")
  62. ]
  63. uint32 SingleSessionMode;
  64. // [Implemented,
  65. // Description("Configures the number of sessions for the cluster machine.")
  66. // ]
  67. //uint32 SetNumberOfSessions([In] uint32 NumberOfSessions);
  68. };
  69. // SessionDirectoryServer
  70. instance of __Win32Provider as $P1
  71. {
  72. Name = "Win32_WIN32_SESSIONDIRECTORYSERVER_Prov";
  73. ClsId = "{f99a3c50-74fa-460a-8d75-db8ef2e3651d}";
  74. HostingModel = "NetworkServiceHost";
  75. };
  76. instance of __InstanceProviderRegistration
  77. {
  78. Provider = $P1;
  79. SupportsGet = TRUE;
  80. //SupportsPut = TRUE;
  81. //SupportsDelete = TRUE;
  82. SupportsEnumeration = TRUE;
  83. QuerySupportLevels = {"WQL:UnarySelect"};
  84. };
  85. instance of __MethodProviderRegistration
  86. {
  87. Provider = $P1;
  88. };
  89. [dynamic, provider("Win32_WIN32_SESSIONDIRECTORYSERVER_Prov"),
  90. Description("The Win32_SessionDirectoryServer class defines the query for SessionDirectoryServer. "
  91. "This includes capabilities such as NumberOfSessions.")]
  92. class Win32_SessionDirectoryServer
  93. {
  94. [key, read,
  95. Description ( "Name of the Session Directory Server machine whose properties are of interest.")
  96. ]
  97. string ServerName;
  98. [read,
  99. Description ( "IP Address the Session Directory Server machine.")
  100. ]
  101. string ServerIPAddress;
  102. [read,
  103. Description ( "Name of the Cluster the Session Directory Server machine belongs to.")
  104. ]
  105. string ClusterName;
  106. [read,
  107. Description ( "Number of sessions in the server")
  108. ]
  109. uint32 NumberOfSessions;
  110. [read,
  111. Description ( "Single session mode of the server")
  112. ]
  113. uint32 SingleSessionMode;
  114. };
  115. // SessionDirectorySession
  116. instance of __Win32Provider as $P2
  117. {
  118. Name = "Win32_WIN32_SESSIONDIRECTORYSESSION_Prov";
  119. ClsId = "{b745b87b-cc4e-4361-8d29-221d936c259c}";
  120. HostingModel = "NetworkServiceHost";
  121. };
  122. instance of __InstanceProviderRegistration
  123. {
  124. Provider = $P2;
  125. //SupportsGet = TRUE;
  126. //SupportsPut = TRUE;
  127. //SupportsDelete = TRUE;
  128. //SupportsEnumeration = TRUE;
  129. QuerySupportLevels = {"WQL:UnarySelect"};
  130. };
  131. instance of __MethodProviderRegistration
  132. {
  133. Provider = $P2;
  134. };
  135. [dynamic, provider("Win32_WIN32_SESSIONDIRECTORYSESSION_Prov"),
  136. Description("The Win32_SessionDirectorySession class defines the query for SessionDirectorySession. "
  137. "This includes username, domainname ....")]
  138. class Win32_SessionDirectorySession
  139. {
  140. [key, read,
  141. Description ( "Name of the Server the session is on.")
  142. ]
  143. string ServerName;
  144. [key, read,
  145. Description ( "Session ID of this session.")
  146. ]
  147. uint32 SessionID;
  148. [read,
  149. Description ( "UserName of the session.")
  150. ]
  151. string UserName;
  152. [read,
  153. Description ( "DomainName of the session")
  154. ]
  155. string DomainName;
  156. [read,
  157. Description ( "IP Address of the server the session is on")
  158. ]
  159. string ServerIPAddress;
  160. [read,
  161. Description ( "TS Protocol of the session")
  162. ]
  163. uint32 TSProtocol;
  164. [read,
  165. Description ( "Application type of the session")
  166. ]
  167. string ApplicationType;
  168. [read,
  169. Description ( "Resolution width of the session")
  170. ]
  171. uint32 ResolutionWidth;
  172. [read,
  173. Description ( "Resolution height of the session")
  174. ]
  175. uint32 ResolutionHeight;
  176. [read,
  177. Description ( "Color depth of the session")
  178. ]
  179. uint32 ColorDepth;
  180. [read,
  181. Description ( "Create time of the session")
  182. ]
  183. DateTime CreateTime;
  184. [read,
  185. Description ( "Disconnect time of the session (if applicable)")
  186. ]
  187. DateTime DisconnectTime;
  188. [read,
  189. Description ( "Session state of the session")
  190. ]
  191. uint32 SessionState;
  192. };