KillJob method of the Msps_ProvisioningJob class
KillJob is being deprecated because there is no distinction made between an orderly shutdown and an immediate kill.
CIM_ConcreteJob.RequestStateChange() provides 'Terminate' and 'Kill' options to allow this distinction. A method to kill this job and any underlying processes, and to remove any 'dangling' associations.
Syntax
uint32 KillJob(
[in] boolean DeleteOnKill
);
Parameters
-
DeleteOnKill [in]
-
Indicates whether or not the Job should be automatically deleted upon termination. This parameter takes precedence over the property, DeleteOnCompletion.
Return value
-
0
Success
-
1
Not Supported
-
2
Unknown
-
3
Timeout
-
4
Failed
-
6
Access Denied
-
7
Not Found
-
8 32767
DMTF Reserved
-
32768 65535
Vendor Specific
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2016 |
Namespace |
Root\MSPS |
MOF |
|
DLL |
|