Platform SDK: Windows Management Instrumentation |
The Win32_PageFileSetting class represents data files that describe the paging characteristics of a Windows NT/Windows 2000 system. Each instance of the Win32_PageFileSetting class represents a different page file. The Win32_PageFileSetting class has three modifiable properties:
These properties are read/write only on Windows NT/Windows 2000 systems because on Windows 95 and Windows 98 systems there is a single page file. The name of this single page file is stored in the System.ini initialization file.
Changes to the page file do not take effect until after the system is restarted.
The Name property is a character string containing the name of a page file. By specifying the name of a file that does not yet exist, an application can create a new page file on the computer. The name must be a complete file name, including the drive letter and directory hierarchy. The Win32 Provider does not validate the specified name. The application must ensure that all parts in the name are valid.
The InitialSize and MaximumSize properties are 32-bit integers. InitialSize specifies the number of megabytes that a page file contains when it is first created. MaximumSize specifies the maximum number of megabytes that a page file can ever contain.