我有以下代码`
STARTUPINFOA cif={sizeof(cif)};
PROCESS_INFORMATION pi;
CreateProcessA( "C:\Windows\notepad.exe", NULL, NULL, NULL, FALSE, NULL , NULL, NULL, &cif, &pi);
cout << pi.hProcess << endl;
它输出NULL,为什么?怎么了?如果我写`
STARTUPINFO cif={sizeof(cif)};
PROCESS_INFORMATION pi;
CreateProcess( L"C:\Windows\notepad.exe", NULL, NULL, NULL, FALSE, NULL , NULL, NULL, &cif, &pi);
cout << pi.hProcess << endl;
它也输出NULL,我该怎么办?