啓動其他程序

    在Pocket PC中通過ShellExecuteEx來加載其他其他EXE程序
如:
 SHELLEXECUTEINFO shelInfo;
 memset(&shelInfo,0,sizeof(SHELLEXECUTEINFO));
 shelInfo.cbSize = sizeof(SHELLEXECUTEINFO);
 shelInfo.hwnd  = NULL;
 shelInfo.lpVerb = L"Open";
 shelInfo.lpFile = strFile;
 shelInfo.lpParameters = L"PXL.exe" + strFile;
 shelInfo.nShow  = SW_SHOW;

 BOOL bSus = ShellExecuteEx(&shelInfo);
其中lpParameters參數保留在註冊表中。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章