본문 바로가기

Windows/MFC

windows mobile hosts file

http://mobilitydojo.net/2008/10/09/using-a-hosts-file-on-windows-mobile/

path
[code]
HKLM\Comm\Tcpip\Hosts
[/code]

t can be found in HKLM\Comm\Tcpip\Hosts. Do the following:
- Add a subkey which is the host name/FQDN.
- Add a Binary value ipaddr containing to hexadecimal notation of the IP address.
- Add a Binary value ExpireTime containing an expiration value. I think this is actually optional, or you can just set it to a large value – say “99 99 99 99 99 99 99”. (As in never expire basically.)


[HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts\servername]

"ipaddr"=hex:a1,a3,a5,a9

"ExpireTime"=hex:99,99,99,99,99,99,99