IDebugPort2::GetProcess

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

Gets the specified process running on a port.

Syntax

HRESULT GetProcess(   
   AD_PROCESS_ID    ProcessId,  
   IDebugProcess2** ppProcess  
);  
int GetProcess(   
   AD_PROCESS_ID      ProcessId,  
   out IDebugProcess2 ppProcess  
);  

Parameters

ProcessId
[in] An AD_PROCESS_ID structure that specifies the process identifier.

ppProcess
[out] Returns an IDebugProcess2 object representing the process.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See Also

IDebugPort2
IDebugProcess2
AD_PROCESS_ID