Win32_PageFileSetting class
The Win32_PageFileSetting WMI class represents the settings of a page file. Information contained within objects instantiated from this class specify the page file parameters used when the file is created at system startup. The properties in this class can be modified and deferred until startup. These settings are different from the run-time state of a page file expressed through the associated class Win32_PageFileUsage.
To create an instance of this class, enable the SeCreatePagefilePrivilege privilege. For more information, see Privilege Constants and Executing Privileged Operations.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
class Win32_PageFileSetting : CIM_Setting
{
string Caption;
string Description;
uint32 InitialSize;
uint32 MaximumSize;
string Name;
string SettingID;
};
Members
The Win32_PageFileSetting class has these types of members:
Properties
The Win32_PageFileSetting class has these properties.
- Caption
-
- Data type: string
- Access type: Read-only
Short description of the CIM_Setting object.
- Description
-
- Data type: string
- Access type: Read-only
Description of the CIM_Setting object.
- InitialSize
-
- Data type: uint32
- Access type: Read/write
- Qualifiers: Units (Megabytes)
Initial size of the page file.
Example: 139
- MaximumSize
-
- Data type: uint32
- Access type: Read/write
- Qualifiers: Units (Megabytes)
Maximum size of the page file.
Example: 178
- Name
-
- Data type: string
- Access type: Read/write
- Qualifiers: Key
Path and file name of the page file.
Example: "C:\PAGEFILE.SYS"
- SettingID
-
- Data type: string
- Access type: Read-only
Identifier by which the CIM_Setting object is known.
Remarks
The Win32_PageFileSetting class is derived from CIM_Setting.
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 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012