BOOL (*pDhcpNotifyProc)(LPWSTR,LPWSTR,BOOL,DWORD,DWORD,DWORD,int);
pDhcpNotifyProc=(BOOL(*)(LPWSTR,LPWSTR,BOOL,DWORD,DWORD,DWORD,int))GetProcAddress(hDhcpDll,"DhcpNotifyConfigChange"))
pDhcpNotifyProc(NULL,pApp->m_pNameOfAdapter,(BOOL)TRUE,(DWORD)0,(DWORD)inet_addr(chrNet),(DWORD)inet_addr("255.255.255.0"),2);首先,pDhcpNotifyProc已经成功获得了该函数的地址,其它参数也完全正确