Jaa


IDebugPort2::GetProcess

Applies to: yesVisual Studio noVisual 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

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