Udostępnij za pośrednictwem


IDebugPort2::GetProcess

Gets the specified process running on a port.

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

Reference

IDebugPort2

IDebugProcess2

AD_PROCESS_ID