IDebugProgramHost2:: GetHostMachineName

获取承载此程序的进程运行的计算机的名称。

HRESULT GetHostMachineName( 
   BSTR* pbstrHostMachineName
);
int GetHostMachineName( 
   out string pbstrHostMachineName
);

参数

  • pbstrHostMachineName
    [out] 返回计算机的名称。

返回值

如果成功,则返回; S_OK否则,返回错误代码。

请参见

参考

IDebugProgramHost2