an erratic problem about setting ip address

W

william wang

i use this undocumented function to set ip address:
i can set ip successfully, but a erratic problem appears,
after ip changed, i can connect to internet, but i can't access neighbour
computer in local network by the way that
type \\192.168.130.17 in the address column.

typedef DWORD (WINAPI *PDhcpNotifyConfigChange)(
LPWSTR lpwszServerName, // NULL for local machine
LPWSTR lpwszAdapterName, // see below
BOOL fNewIpAddress, // TRUE if IP address modified
DWORD dwIpIndex, // IP address index (0 based)
DWORD dwIpAddress, // IP address to set (network order)
DWORD dwSubNetMask, // Associated subnet mask (network order)
int nDhcpAction ); // 0:don't modify/1:enable/2:disable DHCP
thanks for any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top