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.

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 DeleteOnCompletion property.

Return value

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)

Requirements

Requirement Value
Minimum supported client
Windows 8.1
Minimum supported server
Windows Server 2012 R2
Namespace
Root\virtualization\v2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

See also

CIM_Job