Compartilhar via


IRemoteToolDevice::TerminateProcess (Compact 2013)

3/26/2014

Terminates a process using a process handle obtained from IRemoteToolDevice::EnumerateProcesses or IRemoteToolDevice::LaunchProcess.

This simply delegates to ICcConnection::TerminateProcess in the Core Connectivity native API.

Syntax

HRESULT TerminateProcess([in] DWORD dwProcessID)

Parameters

  • dwProcessID
    The process ID of the process to terminate.

Return Value

ERROR_INVALID_DATA if there is no active connection created by calling IRemoteToolServer::ConnectToDevice.

S_OK if success.

Other error codes may be returned from ICcConnection::TerminateProcess.

See Also

Reference

IRemoteToolDevice
IRemoteToolServer::ConnectToDevice
ICcConnection::TerminateProcess