opening network connections
-
Hi all, I want to open network connection dialog, how can i do so? thanks in advance
-
Hi all, I want to open network connection dialog, how can i do so? thanks in advance
I'm not sure if this is what you're looking for, but you can find a windows app called rasphone.exe in C:\Windows\System32. So, something like this might help:
ShellExecute(0, 0, _T("rasphone.exe"), 0, 0, SW_SHOW);
When you execute that, it will let you connect, disconnect, and edit properties of you network connections. Hope it helps. :)
-
Hi all, I want to open network connection dialog, how can i do so? thanks in advance
Have you tried
SHGetFolderLocation(NULL, CSIDL_CONNECTIONS, ...)
? That would get you a PIDL that can then be used to obtain the actual path of the "Network Connections" virtual folder."Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
Hi all, I want to open network connection dialog, how can i do so? thanks in advance
The control panel "dialog"? If so... // On Vista: ::CreateProcess(_T("C:\\Windows\\System32\\control.exe"), _T(" /name Microsoft.NetworkAndSharingCenter"), ... // On older OSs (I didn't test this): ::CreateProcess(_T("C:\\Windows\\System32\\control.exe"), _T(" ncpa.cpl"), ... And if that's the wrong dialog, never mind :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
The control panel "dialog"? If so... // On Vista: ::CreateProcess(_T("C:\\Windows\\System32\\control.exe"), _T(" /name Microsoft.NetworkAndSharingCenter"), ... // On older OSs (I didn't test this): ::CreateProcess(_T("C:\\Windows\\System32\\control.exe"), _T(" ncpa.cpl"), ... And if that's the wrong dialog, never mind :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
thanks for your solution it worked for vista but the one which you gave for lower version is not working(xp i have checked)....
-
thanks for your solution it worked for vista but the one which you gave for lower version is not working(xp i have checked)....
sorry its working thanks for your answer