From: "John M. Aldrich" 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: Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp218.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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: | ---------------------------------------------------------------------