954,260 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

ShellExecute in Windows Embedded

I am using ShellExecute(NULL,"open","control.exe","ncpa.cpl","c:\\windows\\system32\\",SW_NORMAL); to open the Network Connections window. That is working on my system which has Windows XP on it. But when I make a build for the machine on which this program has to run it doesn't work. It has Windows Embedded on it. I guess it's because there is no control.exe in Windows Embedded.

So I tried running ShellExecute(NULL,"open","Rundll32.exe","ncpa.cpl","c:\\windows\\system32\\",SW_NORMAL); but that is not working. It returns 42 so its success, but still nothing happens. I tried various other options like using "ncpa.cpl,," and using "Rundll32.exe Shell32.dll" instead of "Rundll32.exe" but that doesn't work either. How can I use ShellExecute so that it will work on both on my machine as well as on Windows Embedded. Even if there is a solution which will only work on Windows Embedded that is fine since I will just #define it.

divineelite
Newbie Poster
8 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

Would it be sufficient to code in explorer.exe opening Network Connections window via its CLSID?
/n as an explorer parameter would open a new instance of it...

gerbil
Industrious Poster
4,208 posts since May 2005
Reputation Points: 239
Solved Threads: 300
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: