| www.delorie.com/archives/browse.cgi | search |
| From: | "John M. Aldrich" <fighteer AT cs DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Need "fancy" trick... |
| Date: | Thu, 26 Dec 1996 19:59:27 -0800 |
| Organization: | Two pounds of chaos and a pinch of salt |
| Lines: | 19 |
| Message-ID: | <32C3499F.2B89@cs.com> |
| References: | <Pine DOT LNX DOT 3 DOT 93 DOT 961226144409 DOT 8523A-100000 AT web DOT wa DOT net> |
| Reply-To: | fighteer AT cs DOT com |
| NNTP-Posting-Host: | ppp218.cs.com |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Gene Buckle wrote: > > Is it possible to use this method to lock the *entire* program? A better method is to set the crt0 flags to lock all memory as it is allocated. Use the following code: #include <crt0.h> int _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY; I believe this will do what you intend. Anyone else care to comment? -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Plan: To find ANYONE willing to | http://www.cs.com/fighteer | | play Descent 2 on DWANGO! | Tagline: <this space for rent> | ---------------------------------------------------------------------
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |