Partager via


IDebugPortEx2::CanTerminateProcess

Note

This article applies to Visual Studio 2015. 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.

See Also

IDebugPortEx2
IDebugProcess2