Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

an erratic problem about setting ssid

4 views
Skip to first unread message

william wang

unread,
Nov 30, 2004, 12:34:41 AM11/30/04
to
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.


Arkady Frenkel

unread,
Dec 1, 2004, 8:22:08 AM12/1/04
to
Try documented way : WMI SetStatic() method of
Win32_NetworkAdapterConfiguration interface
It use DhcpNotifyConfigChangeEx() inside
Arkady

"william wang" <rober...@asus.com.cn> wrote in message
news:usOUaR31...@TK2MSFTNGP11.phx.gbl...

kennet...@gmail.com

unread,
Jan 3, 2017, 7:30:19 PM1/3/17
to
I know its a really old post but im wondering if the solution was to call one of the change notify functions exported from the same dll. I would assume that on change the adapter for SMB or NBT/SMB must be deleted and recreated. This would exlain ip connectivity with no access to windows/smb shares. The adapter is bound to a protocol adapter that has incorrect information. I wouldnt be surprised if you even saw it creating the packet with the old ip address for anythimg smb and the right address for anything str8 tcp. Just curious, how did u work this out...if ur still around and paying attention to this thread lol?
0 new messages