请教.如何让一个程序开启另外一个程序? 我根据别人的源码写了一个自己的魔兽显蓝内存外挂.我想让运行魔兽争霸(war3.exe)之后运行我写的内存挂(lan.exe),从而方便开启.请问有什么办法. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CreateProcess就行了。给个例子:PROCESS_INFORMATION piProcInfo; STARTUPINFO siStartInfo;// Set up members of STARTUPINFO structure.siStartInfo.cb = sizeof(STARTUPINFO); siStartInfo.lpReserved = NULL;siStartInfo.lpReserved2 = NULL; siStartInfo.cbReserved2 = 0;siStartInfo.lpDesktop = NULL; siStartInfo.dwFlags = 0;// Create the child process.CreateProcess(NULL,strCmdLine,NULL, // process security attributesNULL, // primary thread security attributes0, // handles are inherited0, // creation flagsNULL, // use parent's environmentNULL, // use parent's current directory&siStartInfo, // STARTUPINFO pointer&piProcInfo); // receives PROCESS_INFORMATION WinExec这个应该是最简单吧。 PROCESS_INFORMATION pi; if (!CreateProcess(_T("iexplore.exe"), NULL, NULL, NULL, NULL, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pi)){ MessageBox(_T("failure."));}CloseHandle(pi.hThread);CloseHandle(pi.hProcess);我在WinCE系统下,打开iexplore.exe。 ShellExcute, WinExec, CreateProcess, system等指令都可以.. USB驱动安装问题!~ 求UPNP的例子和代码. 用win32 SDK和c++编写一个自绘的Button类 MFC程序如何改变窗口的底色? 请问可以具体设定DBGrid空件的各个单元的背景色吗?如我要设定第二行第三列的颜色为红色,字体为蓝色,可以吗?请教! 一个编译错误,请帮忙 propertysheet 一个单文档视图窗口中如何打开两幅图片?? 急!我用OPENFILENAME来调用打开文件对话框,用什么方法获得和CFileDialog中的GetFileName一样类型的返回值? 求教:如何加壳 用VC编的物资管理系统,进货登记时出现内存错误!求解各位大侠! VC关于操作方面的问题,求指教
给个例子:
PROCESS_INFORMATION piProcInfo;
STARTUPINFO siStartInfo;// Set up members of STARTUPINFO structure.
siStartInfo.cb = sizeof(STARTUPINFO);
siStartInfo.lpReserved = NULL;
siStartInfo.lpReserved2 = NULL;
siStartInfo.cbReserved2 = 0;
siStartInfo.lpDesktop = NULL;
siStartInfo.dwFlags = 0;// Create the child process.
CreateProcess(NULL,
strCmdLine,
NULL, // process security attributes
NULL, // primary thread security attributes
0, // handles are inherited
0, // creation flags
NULL, // use parent's environment
NULL, // use parent's current directory
&siStartInfo, // STARTUPINFO pointer
&piProcInfo); // receives PROCESS_INFORMATION
这个应该是最简单吧。
PROCESS_INFORMATION pi;
if (!CreateProcess(_T("iexplore.exe"), NULL, NULL, NULL, NULL,
CREATE_NEW_CONSOLE, NULL, NULL, NULL, &pi)){
MessageBox(_T("failure."));
}
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);我在WinCE系统下,打开iexplore.exe。