KillJob is being deprecated because there is no distinction made between an orderly shutdown and an immediate kill. 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
Success (0)
Not Supported (1)
Unknown (2)
Timeout (3)
Failed (4)
Access Denied (6)
Not Found (7)
DMTF Reserved (8 32767)
Vendor Specific (32768 65535)
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 |
| Minimum supported server | Windows Server 2012 |
| Namespace | Root\standardcimv2 |
| MOF | NetTCPIP.mof |
| DLL | NetTCPIP.dll |
See also
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors (upstream author metadata: windowssdkdev). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
