标签:argc clu amp process code iostream env rtu include
#include "stdafx.h" #include "windows.h" #include "iostream.h" void env() { PROCESS_INFORMATION pi={0}; STARTUPINFO si={0}; si.cb=sizeof(si); CreateProcess("child.exe",NULL,NULL,NULL,FALSE,0,NULL,NULL,&si,&pi); cout<<"pi.dwProcessId:"<<pi.dwProcessId<<endl; cout<<"pi.dwThreadId:"<<pi.dwThreadId<<endl; cout<<"pi.hProcess:"<<pi.hProcess<<endl; cout<<"pi.hThread:"<<pi.hThread<<endl; } int main(int argc, char* argv[]) { env(); return 0; }
标签:argc clu amp process code iostream env rtu include
原文地址:https://www.cnblogs.com/butchert/p/12550021.html