Date: Thu, 26 Dec 1996 19:05:40 -0800 (PST) From: Gene Buckle To: DJ Delorie cc: djgpp AT delorie DOT com Subject: Re: Need "fancy" trick... In-Reply-To: <199612270144.UAA23970@delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > > Especially since you have to set it *before* the program starts, like > this: > > #include > > extern int _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY; > > int main() > { > } > > By the time main() gets called, it's too late - your program has > already started. > Thanks for the clarification DJ. When I get home from work I'll give it a shot in a test program and see how it works. I'm hoping that I'll be able to hook INT 0xEF and have all the spawned programs call *only* that hook for communication back to the locked routines. This way I'll be able to implement what I need. It should prove interesting when I use the EMM386 multi-tasking and thread routines to wrap the system() (or spawn() ) calls. (EMM386 under OpenDOS has a built-in multi-tasker) g.