November 04, 2004

Guess what this does


SECURITY_ATTRIBUTES SecAttib;
SECURITY_ATTRIBUTES ThreadAttrib;
STARTUPINFO StartUpInfo;
PROCESS_INFORMATION ProcInfo;

ZeroMemory(&SecAttib, sizeof(SECURITY_ATTRIBUTES));
ZeroMemory(&ThreadAttrib, sizeof(SECURITY_ATTRIBUTES));
ZeroMemory(&StartUpInfo, sizeof(STARTUPINFO));
ZeroMemory(&ProcInfo, sizeof(PROCESS_INFORMATION));

StartUpInfo.cb = sizeof(STARTUPINFO);

::CreateProcess(
NULL,
_T("C:\\mono\\Mono-1.0\\bin\\mono.bat C:\\mono\\Mono-1.0\\lib\\prj2make-sharp-gtk.exe"),
&SecAttib,
&ThreadAttrib,
TRUE,
CREATE_NO_WINDOW,
NULL,
NULL,
&StartUpInfo,
&ProcInfo
);


Let me know if anyone is interested :)

Posted by martinf at November 4, 2004 08:13 PM
Comments

Ugh!

Now I remember why Win32 programming makes me puke!

Where's Duke when I need him? :-)

Posted by: PJ Cabrera at November 4, 2004 08:23 PM

My guess is this is equivalent to an exec in Unix?

It starts a child process in the background and keeps the app running at the same time (the launcher doesn't wait around for the child process to finish).

Posted by: PJ Cabrera at November 4, 2004 08:26 PM

Hey young man! Where's the hungarian notation? I'm gonna tell Kevin on you! :-)

I am so looking forward to hanging with you and Kevin at IFLOSS. I like to spell it like Apple spells iPod. :-D

iFloss, do you?

PS - We definitely need to get you to the next OSCON. Imagine Kevin, Erik Dasque, Miggy, yourself, and I, hanging out at Champions, at the SNAP Platform 1.0 launch party. ;-p

Posted by: PJ Cabrera at November 4, 2004 08:38 PM

What does it do? Security options on a child process?

Posted by: Matthew Metnetsky at November 4, 2004 11:01 PM

PJ: I am counting the days, to Puerto Rico and IFLOSS.

Mattew: I will give you a hint. It has to do with launching Mono apps in Win32 when usging the Mono Combined installer. This may be the solution to the number one complaint that Linux programmers have when deploying their applications to Windows.

Posted by: Paco at November 5, 2004 06:42 AM