harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <g...@pobox.com>
Subject [OT] win32 guru help needed
Date Mon, 04 Dec 2006 14:38:46 GMT
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


Mime
View raw message