KillJob method of the CIM_ConcreteJob class
Note This method is deprecated. Instead we recommend that you use the RequestStateChange method.
Shuts down a job.
Syntax
uint32 KillJob(
[in] boolean DeleteOnKill
);
Parameters
DeleteOnKill [in]
True if the job should be automatically deleted upon termination; otherwise, false.Note This parameter takes precedence of the DeleteOnCompletion property.
Return value
Returns 0 on success, otherwise returns a WMI error code.
Requirements
Namespace |
Root\CIMV2 |