KillJob method of the CIM_Job class
A method to kill this job and any underlying processes, and to remove any 'dangling' associations. This method is deprecated; use RequestChangeState instead. 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.
uint32 KillJob(
[in] boolean DeleteOnKill
);
-
DeleteOnKill [in]
-
Indicates whether or not the Job should be automatically deleted upon termination. This parameter takes precedence over the DeleteOnCompletion property.
Returns a 0 on success; otherwise, returns an error.
-
Success (0)
-
Not Supported (1)
-
Unknown (2)
-
Timeout (3)
-
Failed (4)
-
Access Denied (6)
-
Not Found (7)
-
DMTF Reserved (..)
-
Vendor Specific (32768..65535)
Requirement | Value |
---|---|
Minimum supported client |
Windows 8.1 |
Minimum supported server |
Windows Server 2012 R2 |
Namespace |
Root\virtualization\v2 |
MOF |
|
DLL |
|