Mail Archives: djgpp/1996/12/26/22:28:26
>
> 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 -