www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/26/22:28:26

Date: Thu, 26 Dec 1996 19:05:40 -0800 (PST)
From: Gene Buckle <geneb AT web DOT wa DOT net>
To: DJ Delorie <dj AT delorie DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Need "fancy" trick...
In-Reply-To: <199612270144.UAA23970@delorie.com>
Message-ID: <Pine.LNX.3.93.961226190220.9529A-100000@web.wa.net>
MIME-Version: 1.0

> 
> Especially since you have to set it *before* the program starts, like
> this:
> 
> 	#include <crt0.h>
> 
> 	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.
  

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019