創建個和System 名一樣的進程

void proess_test()
{
printf("process_test\n");
STARTUPINFO si;
PROCESS_INFORMATION pi;
WCHAR szCmdline[]={L"System."};
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );


// Start the child process. 
if( !CreateProcessW( NULL,   // No module name (use command line)
szCmdline,        // Command line
NULL,           // Process handle not inheritable
NULL,           // Thread handle not inheritable
FALSE,          // Set handle inheritance to FALSE
0,              // No creation flags
NULL,           // Use parent's environment block
NULL,           // Use parent's starting directory 
&si,            // Pointer to STARTUPINFO structure
&pi ))
{
printf("process create error\n");
}

}


程序改名成system.  默認‘.' 被自動去除了 



額 這個能幹什麼 還不清楚 哈哈



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章