![](/img/trans.png)
[英]ShellExecute freezes on Windows XP when working with two processes
[英]ShellExecute in Windows Embedded
我在用
ShellExecute(NULL,"open","control.exe","ncpa.cpl","c:\\windows\\system32\\",SW_NORMAL);
打開“網絡連接”窗口。 那可以在裝有Windows XP的系統上使用。 但是,當我為必須在其上運行該程序的機器進行構建時,它不起作用。 它具有Windows Embedded。 我猜這是因為Windows Embedded中沒有control.exe。
所以我嘗試跑步
ShellExecute(NULL,"open","Rundll32.exe","ncpa.cpl","c:\\windows\\system32\\",SW_NORMAL);
但這不起作用。 它返回42,所以它成功了,但是什么也沒發生。 我嘗試了其他各種選項,例如使用“ ncpa.cpl”和使用“ Rundll32.exe Shell32.dll”而不是“ Rundll32.exe”,但這也不起作用。 我如何使用ShellExecute,以便它既可以在我的計算機上也可以在Windows Embedded上運行。 即使有只可以在Windows Embedded上運行的解決方案也可以,因為我只是#define它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.