Terminates a device imaging deployment.
HRESULT TerminateImageDeployment( const BSTR DeploymentJobID );
[in] ID of the device imaging deployment.
This method blocks any other calls by the Device Imaging service until the method returns. To avoid this, start a new thread inside the method. This will minimize the time required for the method to return.
If a device imaging request is suspended and then terminated, the device imaging component should use the IImageDeploymentManager::SetDeviceStatusmethod to update the ImageDeploymentStatusenumeration to ImageDeploymentTerminated.
If your device imaging component supports terminating images, you should use the IImageDeploymentManager::SetDeviceStatusmethod to update the status of each device that corresponds to this deployment to Terminated.
Devices that are set to Terminatedshould not be resumed.