Obtaining the name of the client computer
For applications that require the client's computer name rather than the FH Web Edition servers’s, administrators can add the name of that executable under the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\ACSXerox\FH Web Edition\Compatibility\GetComputerName
as a DWORD, with a data value of 0x00000001
. Any time an executable matching any of the names listed under this registry key with a data value of 0x00000001
calls the Windows GetComputerName
API, the given buffer is filled in with the client's name rather than the host's name.
Additionally, there is an environment variable named CLIENTCOMPUTERNAME
that exists as part of the running environment of a published application. This environment variable contains the client's computer name. The CLIENTCOMPUTERIPADDRESS
environment variable performs the same function, except that it contains the IP address of the client computer, rather than the computer name. The standard Windows environment variable COMPUTERNAME
remains unchanged; its value is the host's computer name.
- Run the Registry Editor (
regedit.exe
). - In the Registry Editor, expand the
HKEY_LOCAL_MACHINE
key. - Locate the
GetComputerName
key[SOFTWARE\ACSXerox\FH Web Edition\Compatibility\GetComputerName]
. -
Create a DWORD entry for the executable.
Example:
pw.exe
- Set the value of the new entry to
0x00000001
. - Close the Registry Editor.