IDebugPortEx2::CanTerminateProcess
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Determines whether a process can be terminated.
Syntax
HRESULT CanTerminateProcess(
IDebugProcess2* pPortProcess
);
HRESULT CanTerminateProcess(
IDebugProcess2 pPortProcess
);
Parameters
pPortProcess
[in] An IDebugProcess2 object representing the process to be terminated.
Return Value
Returns S_OK
if the process can be terminated; otherwise, returns S_FALSE
.