Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the name of the machine that the process hosting this program is running on.
HRESULT GetHostMachineName(
BSTR* pbstrHostMachineName
);
int GetHostMachineName(
out string pbstrHostMachineName
);
Parameters
- pbstrHostMachineName
[out] Returns the name of the machine.
Return Value
If successful, returns S_OK; otherwise, returns an error code.