ShellExecuteEx(&ShExecInfo) 和 WinExec

来源:互联网 发布:本地连接 未识别的网络 编辑:程序博客网 时间:2024/05/29 10:51


WinExec("ewfmgr c: -commit", SW_HIDE);


//SHELLEXECUTEINFO ShExecInfo = {0};

//ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
//ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;


////wchar_t wszFile[MAX_PATH] = L"C:\\test\\test.exe";


////ShExecInfo.lpFile =  (LPCSTR)wszFile;
//ShExecInfo.lpFile =  /*(LPCSTR)*/"C:\\test\\test.exe";
////ShExecInfo.lpParameters = L"";
//ShExecInfo.lpDirectory   =  /*(LPCSTR)*/"C:\\test\\";


//OutputDebugString("#### cjk");
//OutputDebugString(ShExecInfo.lpFile);
//OutputDebugString(ShExecInfo.lpDirectory);


//ShExecInfo.nShow = SW_SHOW;
//ShExecInfo.hInstApp = NULL;


//ShellExecuteEx(&ShExecInfo);




uintptr_t hDlalogThread = _beginthreadex(NULL, 0, VncTipsThread, NULL, 0, NULL);
if (0 != hDlalogThread)
{
CloseHandle((HANDLE)hDlalogThread);
}
0 0
原创粉丝点击