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");
}
{
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. 默认‘.' 被自动去除了
额 这个能干什么 还不清楚 哈哈