Paco

Paco

Francisco T. Martinez

Paco's Blog

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 :)
Comments: Guess what this does

Ugh!

Now I remember why Win32 programming makes me puke!

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

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).

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? < snort! >

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

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

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.