I'm embarrassed to ask this, but it's been about 4 years since I did
windows programming in anger. Why does the following simple console
win32 program *crash* :
#include <windows.h>
int main(int argc, char **argv, char **envp)
{
PROCESS_INFORMATION procInfo;
procInfo.dwProcessId = 0;
procInfo.dwThreadId = 0;
procInfo.hProcess = 0;
procInfo.hThread = 0;
CreateProcess("cmd.exe","", NULL, NULL,
FALSE, 0, NULL, NULL, NULL,&procInfo);
}
I can understand why CreateProcess might *fail*, but I don't grok why it
would crash...
geir