The
__ProviderHostQuotaConfiguration system class is a configuration class for host provider processes. This class resides in the root namespace and allows limits to be set on host process usage of system resources.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties are listed in alphabetic order, not MOF order.
Syntax
class __ProviderHostQuotaConfiguration : __SystemClass
{
uint32 ThreadsPerHost;
uint32 HandlesPerHost;
uint32 ProcessLimitAllHosts;
uint64 MemoryPerHost;
uint64 MemoryAllHosts;
};
Methods
The __ProviderHostQuotaConfiguration class inherits from __SystemClass.
Properties
The __ProviderHostQuotaConfiguration class defines the following properties.
- HandlesPerHost
-
- Data type: uint32
- Access type: Read/write
Number of kernel object handles each host can have.
- MemoryAllHosts
-
- Data type: uint64
- Access type: Read/write
Combined amount of private memory in bytes that can be held by all hosts.
For more information about using uint64 values in scripts, see Scripting in WMI.
- MemoryPerHost
-
- Data type: uint64
- Access type: Read/write
Amount of private memory that can be held by each host.
For more information about using uint64 values in scripts, see Scripting in WMI.
- ProcessLimitAllHosts
-
- Data type: uint32
- Access type: Read/write
Total number of host processes that can be executing concurrently.
- ThreadsPerHost
-
- Data type: uint32
- Access type: Read/write
Number of threads owned by any one host.
Remarks
The properties that represent limits can be changed but because the class is a singleton, all the provider hosts share the same limits.
The following parameters are used when configuring the job object limits for the host job object:
- MemoryAllHosts
- MemoryPerHost
- ProcessLimitAllHosts
- ThreadsPerHost
The host process polls handle usage and exits the process if the HandlesPerHost quota is violated. Changes to these values take effect after the computer is restarted.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
| Minimum supported client | Windows XP |
| Minimum supported server | Windows Server 2003 |
| Namespace | all WMI namespaces |
See Also
- WMI System Classes
Send comments about this topic to Microsoft
Build date: 11/3/2009