您的位置首页百科知识

如何用ShellExecuteEx打开程序并且获得句柄

如何用ShellExecuteEx打开程序并且获得句柄

的有关信息介绍如下:

如何用ShellExecuteEx打开程序并且获得句柄

用Findwindow:斗漏memset(&ShExecInfo,0,sizeof(ShExecInfo));ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;ShExecInfo.hwnd = m_hWnd;ShExecInfo.lpVerb = "open";ShExecInfo.lpFile =strFile; //程序文件名称ShExecInfo.lpParameters = strP; //带的参链纯数ShExecInfo.lpDirectory = strPath; //程序文件目录ShExecInfo.nShow = SW_SHOWNORMAL; /空唤烂/程序窗口样式ShExecInfo.hInstApp = NULL;ShellExecuteEx(&ShExecInfo);