共用方式為


IDebugProcess2::GetServer

Gets the server that this process is running on.

HRESULT GetServer( 
   IDebugCoreServer2** ppServer
);
int GetServer( 
   out IDebugCoreServer2 ppServer
);

Parameters

  • ppServer
    [out] Returns an IDebugCoreServer2 object that represents the server on which this process is running.

Return Value

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

Remarks

More than one server can be running on a single machine.

See Also

Reference

IDebugProcess2

IDebugCoreServer2