方法一
SHELLEXECUTEINFO sei;
ZeroMemory(&sei, sizeof(SHELLEXECUTEINFO));
sei.cbSize = sizeof(SHELLEXECUTEINFO);
sei.fMask = SEE_MASK_NOCLOSEPROCESS;
sei.lpVerb = _T("Open");
sei.lpFile = L"\\Windows\\wceload.exe";
sei.lpParameters =L"\\Temp\\SdkCerts.cab";
sei.nShow = SW_HIDE;
ShellExecuteEx(&sei);
方法二
PROCESS_INFORMATION pi;
ZeroMemory( &pi, sizeof(pi));
CreateProcess(L"\\Windows\\wceload.exe",L"\\Temp\\SdkCerts.cab", NULL,
NULL, FALSE, 0, NULL, NULL,NULL, &pi);
SHELLEXECUTEINFO sei;
ZeroMemory(&sei, sizeof(SHELLEXECUTEINFO));
sei.cbSize = sizeof(SHELLEXECUTEINFO);
sei.fMask = SEE_MASK_NOCLOSEPROCESS;
sei.lpVerb = _T("Open");
sei.lpFile = L"\\Windows\\wceload.exe";
sei.lpParameters =L"\\Temp\\SdkCerts.cab";
sei.nShow = SW_HIDE;
ShellExecuteEx(&sei);
方法二
PROCESS_INFORMATION pi;
ZeroMemory( &pi, sizeof(pi));
CreateProcess(L"\\Windows\\wceload.exe",L"\\Temp\\SdkCerts.cab", NULL,
NULL, FALSE, 0, NULL, NULL,NULL, &pi);