??Windows????????С??????????????
???????????? ???????[ 2012/10/9 10:52:17 ] ????????
???????????????????????·???????????·??????
?????????????pszApplicationName?NULL??????????????????pszApplicationName??????????????????????????????????????????????????????????????·??????????????????·?????????????λ?????????????????????????????
??????pszApplicationName??????????pszCommandLine?????е??????????????????????д???????
?????磺
STARTUPINFO si={sizeof(si)};
PROCESS_INFORMATION pi;
TCHAR cmdLine[200]=TEXT("WORDPAD a.txt");
CreateProcess(TEXT("C:\windows\system32\NOTEPAD.exe")??
cmdLine??NULL??NULL??FALSE??0??NULL??NULL??&si??&pi);
????????????“WORDPAD a.txt”?????±?????????a.txt???????????a.txt??????????????WORDPAD?????????????????????
??????????????μ?????????????????????????????????????????????Щ??????????????????????????????????????????????????????psaProcess??psaThread?????????????????????????????????????????????NULL?????????????????????????????????SECURITY_ATTRIBUTES?????????????????????????????????????
????fdwCreate??????????????????????磺???CREATE_SUSPENDEd???????????????????????????????????????????????????????????楨?????????????????????????????С?????????????ResumeThread?????????????д???????0 ???????????????????С???????λ?????????á?
????pvEnvironment????????????棬?????????????????????????????????????????NULL?????????????и???????????黷?????????????????GetEnvironmentStrings??????????????????????????????????????????????????pvEnvirtonment????NULL???CreateProcess????????????????????????????????FreeEnvironmentStrings??????
????pszCurDir?????????????????????????????????????NULL?????????????????????????
????psiStartInfo??????????STARTUPINFO?????y????????????Windows????????????????????????????????ó???????????????????????????????????????????????????г??????????0????cb????????????С???磺
????STARTUPINFO si={sizeof(si)};
?????????cb???????????????0?????????si.cb=sizeof(si);?????????????????????????????
????ppiProcInfo???????PROCESS_INFORMATION????CreateProcess???????????????????
Typedef struct _PROCESS_INFORMATION
{
HANDLE hProcess;
HANDLE hThread;
HANDLE dwProcessId;
HANDLE dwThreadId;
}PROCESS_INFORMATION;
????CreateProcess????????????????????????????????????????????????????????ü???1??CreateProcess?????????PROCESS_INFORMATION?????????????????????????? ??????????ü????????2?????????????????????????????????????????????????????????ü????????1??
??????????????????????1???????????????????ü??????1??2??????????????CloseHandle????ü?????μ??1??????????
??????????????????????????????????????????????????CloseHandle???????????á????ж?t???????????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11