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 interface inherits from __SystemClass.
Properties
The __ProviderHostQuotaConfiguration class defines the following properties.
- HandlesPerHost
- Data type: uint32
Access type: Read/writeNumber of kernel object handles each host can have.
- MemoryAllHosts
- Data type: uint64
Access type: Read/writeCombined 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/writeAmount 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/writeTotal number of host processes that can be executing concurrently.
- ThreadsPerHost
- Data type: uint32
Access type: Read/writeNumber 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
| Client | Requires Windows Vista or Windows XP. |
| Server | Requires Windows Server 2008 or Windows Server 2003. |
|---|
| Namespace | Defined in all WMI namespaces.
|
See Also
WMI System Classes
Send comments about this topic to Microsoft
Build date: 9/29/2008