Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
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.