CancelAllJobs method of the Win32_Printer Class
The CancelAllJobs WMI class method removes all jobs, including the one currently printing from the queue.
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.
Syntax
uint32 CancelAllJobs();
Parameters
This method has no parameters.
Return value
| Return code | Description |
|---|---|
|
Success |
|
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 |
|
|
DLL |
|
|
Namespace |
\root\CIMV2 |
See also
Send comments about this topic to Microsoft
Build date: 9/7/2011
