home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / WindowsServerTrial / server.iso / sources / install.wim / 5 / Windows / System32 / wbem / tsallow.mof < prev    next >
Encoding:
Text File  |  2008-01-05  |  10.4 KB  |  256 lines

  1. // **************************************************************************
  2. //
  3. // Copyright (c)  Microsoft Corporation, All Rights Reserved
  4. //
  5. // File:  tsallow.mof
  6. //
  7. // Description:
  8. //
  9. // History:
  10. //
  11. // **************************************************************************
  12.  
  13. // automatically recompile during a repository rebuild
  14. #PRAGMA AUTORECOVER
  15.  
  16. // Create the root\cimv2\TerminalServices namespace
  17. #pragma namespace("\\\\.\\ROOT\\cimv2")
  18.  
  19. Instance of __Namespace
  20. {
  21.   Name = "TerminalServices";
  22. };
  23.  
  24. // Place the TSPubWMI provider in the root\cimv2\TerminalServices namespace
  25. #pragma namespace("\\\\.\\ROOT\\cimv2\\TerminalServices")
  26.  
  27. // Require all clients to use Pkt_Privacy or higher
  28. [RequiresEncryption(TRUE)]
  29. instance of __systemSecurity
  30. {
  31. };
  32.  
  33. /////////////////////////////////////////////////////////////////////
  34. // Declare an instance of the __Win32Provider so as to "register" the
  35. // provider
  36. instance of __Win32Provider as $P
  37. {
  38.     Name    = "Win32_TSPublishedApplication_Prov" ;
  39.     ClsId   = "{643B0017-1AAE-4AFA-B921-4BE3FB8308A2}" ;
  40.     HostingModel = "NetworkServiceHost";
  41. } ;    
  42.  
  43. instance of __InstanceProviderRegistration
  44. {
  45.     Provider = $P;
  46.     SupportsPut = TRUE;
  47.     SupportsGet = TRUE;
  48.     SupportsDelete = TRUE;
  49.     SupportsEnumeration = TRUE;
  50. };
  51.  
  52. instance of __MethodProviderRegistration
  53. {
  54.     Provider = $P;
  55. };
  56.  
  57. [Description("This event represents a change to RemoteApp settings on this terminal server.")]
  58. class Win32_RemoteAppChangeEvent : __ExtrinsicEvent
  59. {
  60. };
  61.  
  62. Instance of __EventProviderRegistration
  63. {
  64.   Provider = $P;
  65.   EventQueryList = {
  66.     "SELECT * FROM Win32_RemoteAppChangeEvent"
  67.    };
  68. };
  69.  
  70. // ================================================================== 
  71. //    CIM
  72. // ==================================================================
  73.  
  74. [Abstract,Locale(1033) : ToInstance,UUID("{8502C517-5FBB-11D2-AAC1-006008C78BC7}") : ToInstance] 
  75. class CIM_ManagedSystemElement
  76. {
  77.   [MaxLen(64) : ToSubclass,Read : ToSubclass] string Caption;
  78.   [Read : ToSubclass] string Description;
  79.   [Mappingstrings{"MIF.DMTF|ComponentID|001.5"} : ToSubclass,Read : ToSubclass] datetime InstallDate;
  80.   [Read : ToSubclass] string Name;
  81.   [Read : ToSubclass,MaxLen(10) : ToSubclass,ValueMap{"OK", "Error", "Degraded", "Unknown", "Pred Fail", "Starting", "Stopping", "Service"} : ToSubclass] string Status;
  82. };
  83.  
  84.  
  85. [Abstract,Locale(1033) : ToInstance,UUID("{8502C518-5FBB-11D2-AAC1-006008C78BC7}") : ToInstance] 
  86. class CIM_LogicalElement : CIM_ManagedSystemElement
  87. {
  88. };
  89.  
  90.  
  91. //**************************************************************************
  92. //* Class: Win32_TSPublishedApplication
  93. //**************************************************************************
  94. [Description("Application published for remote use through Terminal Services"), dynamic, provider("Win32_TSPublishedApplication_Prov")]
  95. class Win32_TSPublishedApplication : CIM_LogicalElement
  96. {
  97.     [read, write, Description("Name of the application")]
  98.         string Name;
  99.     [read, write, Description("Alias of the application"), key]
  100.         string Alias;
  101.     [read, write, Description("Path to the application")]
  102.         string Path;
  103.     [read, Description("Whether application path is valid")]
  104.         boolean PathExists;
  105.        [read, write, Description("Virtual Path to the application")]
  106.               string VPath;
  107.     [read, write, Description("Path to the application icon")]
  108.         string IconPath;
  109.     [read, write, Description("Index of the icon")]
  110.         sint32 IconIndex;
  111.     [read, Description("Contents of the icon corresponding to the application")]
  112.         uint8 IconContents[];
  113.     [read, write, Description("Command Line Arguments setting"), Values { "DoNotAllow", "Allow", "Require"}]
  114.         uint32 CommandLineSetting;
  115.     [read, write, Description("Command Line Arguments required for this application")]
  116.         string RequiredCommandLine;
  117.     [read, write, Description("Whether this application should be shown in the TS Web Access")]
  118.         boolean ShowInPortal;
  119.     [read, write, Description("Contents of the RDP file corresponding to the application")]
  120.         string RDPFileContents;
  121.  
  122. };
  123.  
  124. //**************************************************************************
  125. //* Class: Win32_TSPublishedApplicationList
  126. //**************************************************************************
  127. [Description("The List of Published Applications available on a Terminal Server"), provider("Win32_TSPublishedApplication_Prov"), dynamic, singleton]
  128. class Win32_TSPublishedApplicationList : CIM_LogicalElement
  129. {
  130.     [read, write, Description("Whether the Terminal Server restricts remote applications to those on the list.")]
  131.         boolean Disabled;
  132.  
  133.     [read,
  134.          Description("Indicates whether the property Disabled "
  135.                  "is configured by Server (0),Group Policy (1), Default (2) ")
  136.     ]
  137.     uint32 PolicySourceDisabled;
  138.  
  139.  
  140. };
  141.  
  142. //**************************************************************************
  143. //* Class: Win32_TSRemoteDesktop
  144. //**************************************************************************
  145. [Description("Application published for remote use through Terminal Services"), dynamic, provider("Win32_TSPublishedApplication_Prov")]
  146. class Win32_TSRemoteDesktop : CIM_LogicalElement
  147. {
  148.     [read, write, Description("Name of the Desktop")]
  149.         string Name;
  150.     [read, write, Description("Alias of the Desktop"), key]
  151.         string Alias;
  152.     [read, write, Description("Path to the Desktop icon")]
  153.         string IconPath;
  154.     [read, write, Description("Index of the icon")]
  155.         sint32 IconIndex;
  156.     [read, Description("Contents of the icon corresponding to the application")]
  157.         uint8 IconContents[];
  158.     [read, write, Description("Whether this application should be shown in the TS Web Access")]
  159.         boolean ShowInPortal;
  160.     [read, write, Description("Contents of the RDP file corresponding to the desktop")]
  161.         string RDPFileContents;
  162. };
  163.  
  164. //**************************************************************************
  165. //* Class: Win32_TSDeploymentSettings
  166. //**************************************************************************
  167. [Description("Deployment Settings for the Remote Programs Wizard"), provider("Win32_TSPublishedApplication_Prov"), dynamic, singleton]
  168. class Win32_TSDeploymentSettings : CIM_LogicalElement
  169. {
  170.     [read, write, Description("RDP Port")]
  171.         sint32 Port;
  172.     [read, write, Description("Farm Name")]
  173.         string FarmName;
  174.     [read,write, Description("How Gateway is Used"), Values {"NoGateway", "UseGatewayBypassLocal", "UseGateway", "DetectGateway"}]
  175.         sint32 GatewayUsage;
  176.        [read, write, Description("Gateway Name")]
  177.               string GatewayName;
  178.     [read, write, Description("Gateway Authentication Mode"), Values {"Password", "Smartcard"}]
  179.         sint32 GatewayAuthMode;
  180.     [read, write, Description("Use the same user credentials for TS Gateway and TS Server when possible")]
  181.            boolean GatewayUseCachedCreds;
  182.     [read, write, Description("Require Server Authentication")]
  183.         boolean RequireServerAuth;
  184.     [read, write, Description("Color Bit Depth"), Values {"4", "8", "15", "16", "24", "32"}]
  185.            sint32 ColorBitDepth;
  186.     [read, write, Description("Allow Font Smoothing")]
  187.           boolean AllowFontSmoothing;
  188.     [read, write, Description("Redirection Options "
  189.     "is configured by adding the following flags  None(0), Drives(1), Printers(2), Clipboard(4), Plug and Play(8), Smart Card(16), Audio(32), Serial Port(64)")]
  190.           sint32 RedirectionOptions;
  191.     [read, write, Description("Use a Certificate to Sign the RDP Files")]
  192.            boolean HasCertificate;
  193.     [read, write, Description("Certificate used to sign RDP files")]
  194.            uint8 CertificateHash[];
  195.     [read, write, Description("Certificate Issued To")]
  196.            string CertificateIssuedTo;
  197.     [read, write, Description("Certificate Issued By")]
  198.            string CertificateIssuedBy;
  199.     [read, write, Description("Certificate Expires On, stored as a 64bit FILETIME format")]
  200.            string CertificateExpiresOn;
  201.     [read, write, Description("Contents of the RDP file corresponding to the Custom RDP Settings")]
  202.            string CustomRDPSettings;
  203.     [read, write, Description("Contents of the RDP file corresponding to the Deployment Settings, if this is set the corresponding Redirection settings and other Deployment settings are ignored and this RDP file is used.")]
  204.            string DeploymentRDPSettings;
  205. };
  206.  
  207. //**************************************************************************
  208. //* Class: Win32_TSStartMenuApplication
  209. //**************************************************************************
  210. [Description("Application on the Start Menu of a Terminal Server"), dynamic, provider("Win32_TSPublishedApplication_Prov")]
  211. class Win32_TSStartMenuApplication : CIM_LogicalElement
  212. {
  213.     [read, Description("Name of the application")]
  214.         string Name;
  215.     [read, Description("Path to the application"), key]
  216.         string Path;
  217.        [read, Description("Virtual Path to the application (includes Environment Variables)")]
  218.               string VPath;
  219.     [read, Description("Path to the application icon")]
  220.         string IconPath;
  221.     [read, Description("Index of the icon")]
  222.         sint32 IconIndex;
  223.     [read, Description("Command line arguments")]
  224.         string CommandLineArguments;
  225.  
  226. };
  227.  
  228. //**************************************************************************
  229. //* Class: Win32_TSApplicationFileExtensions
  230. //**************************************************************************
  231. [Description("File Extensions owned by an Application on a Terminal Server"), dynamic, singleton, provider("Win32_TSPublishedApplication_Prov")]
  232. class Win32_TSApplicationFileExtensions : CIM_LogicalElement
  233. {
  234.     [Description("Gives the list of file extensions owned by an application"), Implemented, Static]
  235.         uint32 FileExtensions(
  236.             [Description("Path to the application"), IN]
  237.                 string AppPath,
  238.             [Description("File extensions owned by the application"), OUT]
  239.                 string Extensions[]);
  240. };
  241.  
  242. //**************************************************************************
  243. //* Class: Win32_TSExpandEnvironmentVariables
  244. //**************************************************************************
  245. [Description("Expands System Defined Environment Variables"), dynamic, singleton, provider("Win32_TSPublishedApplication_Prov")]
  246. class Win32_TSExpandEnvironmentVariables : CIM_LogicalElement
  247. {
  248.     [Description("Expands System Defined Environment Variables"), Implemented, Static]
  249.         uint32 EnvironmentVariables(
  250.             [Description("String that contains the environment variables to expand"), IN]
  251.                 string OriginalString,
  252.             [Description("String with the environment variables expanded"), OUT]
  253.                 string ExpandedString);
  254. };
  255.  
  256.