Click here to Skip to main content
15,914,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: newbie api pointers question Pin
Randor 3-Nov-09 11:31
professional Randor 3-Nov-09 11:31 
GeneralRe: newbie api pointers question Pin
egerving3-Nov-09 11:45
egerving3-Nov-09 11:45 
GeneralRe: newbie api pointers question Pin
Randor 3-Nov-09 11:53
professional Randor 3-Nov-09 11:53 
GeneralRe: newbie api pointers question Pin
egerving3-Nov-09 12:10
egerving3-Nov-09 12:10 
GeneralRe: newbie api pointers question Pin
Randor 3-Nov-09 12:12
professional Randor 3-Nov-09 12:12 
QuestionAbout autorun of any exe file in Windows and autorun of file in Linux Pin
WindowsVsLinux3-Nov-09 7:46
WindowsVsLinux3-Nov-09 7:46 
Questionwifstream operator >> Pin
transoft3-Nov-09 5:35
transoft3-Nov-09 5:35 
AnswerRe: wifstream operator >> Pin
David Crow3-Nov-09 5:58
David Crow3-Nov-09 5:58 
GeneralRe: wifstream operator >> [modified] Pin
transoft3-Nov-09 7:49
transoft3-Nov-09 7:49 
QuestionRe: wifstream operator >> Pin
David Crow3-Nov-09 8:05
David Crow3-Nov-09 8:05 
AnswerRe: wifstream operator >> Pin
transoft3-Nov-09 8:18
transoft3-Nov-09 8:18 
GeneralRe: wifstream operator >> Pin
David Crow3-Nov-09 8:30
David Crow3-Nov-09 8:30 
GeneralRe: wifstream operator >> Pin
transoft3-Nov-09 8:46
transoft3-Nov-09 8:46 
QuestionRe: wifstream operator >> Pin
David Crow3-Nov-09 8:51
David Crow3-Nov-09 8:51 
AnswerRe: wifstream operator >> [modified] Pin
transoft3-Nov-09 9:01
transoft3-Nov-09 9:01 
QuestionRe: wifstream operator >> Pin
David Crow3-Nov-09 9:05
David Crow3-Nov-09 9:05 
QuestionHow to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 3:39
RickyJiao3-Nov-09 3:39 
My situation is that our users should be able to adjust their network settings (DHCP on/off, set static IP and set subnet mask) but I have yet to find a solution that is always reliable.

The following solution are from Google, but I think nothing are useful for me.

1. IP Helper API. Using AddIPAddress and DeleteIPAddress: Only adds an IP
address to the adapter, will not change the current one.

2. WMI using Win32_NetworkAdapterConfiguration: I don't want this solution.

3. netsh: Using CreateProcess and passing specail command line can do it, but I don't want to do by another process(Program).

4. DhcpNotifyConfigChange: Eidt registry and call DhcpNotifyConfigChange to notify change. The problem with DhcpNotifyConfigChange is that
it's an undocumented API.And if don't call DhcpNotifyConfigChange, you have to reboot your machine to take effect.

5. SetAdapterIpAddress. This solution are done well in Win2K and WinXP. It is not working under WinVista platform. This is an undocumented API. Using an undocumented API is never ideal
Any ideas? I just want to change IP,DNS,Getway and toggle DHCP without rebooting OS.This just like the Explorer.




AnswerRe: How to change IP address, DNS and Gateways Pin
wangningyu3-Nov-09 3:47
wangningyu3-Nov-09 3:47 
GeneralRe: How to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 3:50
RickyJiao3-Nov-09 3:50 
QuestionRe: How to change IP address, DNS and Gateways Pin
David Crow3-Nov-09 3:51
David Crow3-Nov-09 3:51 
AnswerRe: How to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 3:58
RickyJiao3-Nov-09 3:58 
GeneralRe: How to change IP address, DNS and Gateways Pin
David Crow3-Nov-09 4:06
David Crow3-Nov-09 4:06 
GeneralRe: How to change IP address, DNS and Gateways Pin
RickyJiao3-Nov-09 4:15
RickyJiao3-Nov-09 4:15 
AnswerRe: How to change IP address, DNS and Gateways Pin
Randor 3-Nov-09 4:57
professional Randor 3-Nov-09 4:57 
Question[Message Deleted] Pin
davidcrow693-Nov-09 2:58
davidcrow693-Nov-09 2:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.