http://www.dotblogs.com.tw/atowngit/archive/2009/12/26/12681.aspx
C++发送端代码:
int main(int argc, char* argv[])
{
char *fileName="c:\csharp.exe";
char *params="参数1 参数2 参数3";//传递三个参数
PROCESS_INFORMATION pii;
STARTUPINFO sii;
memset(&sii,0,sizeof(sii));
sii.cb=sizeof(sii);
sii.wShowWindow=SW_SHOW;
sii.dwFlags=STARTF_USESHOWWINDOW;
CreateProcess(fileName, params,NULL,false,NULL,NULL,NULL,NULL,&sii,&pii);
return 0;
}