The
PrintTestPage
WMI class method prints a test page.
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see
Calling a Method.
Syntax
Parameters
This method has no parameters.
Return Value
Returns one of the values listed in the following table, or any other value to indicate an error.
| Return code | Description |
- 0
| Success
|
- 5
| Access Denied
|
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 |
| MOF | Cimwin32.mof |
| DLL | Cimwin32.dll |
| Namespace | \root\cimv2 |
See Also
- Computer System Hardware Classes
- Win32_Printer
Send comments about this topic to Microsoft
Build date: 1/8/2010
Build type: MSDN