X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Wiktor S. (wswiktorSP AT Mpoczta DOT fm) [via djgpp AT delorie DOT com]" Newsgroups: comp.os.msdos.djgpp Subject: Re: how to unlock locked memory Date: Wed, 16 Mar 2016 10:54:25 +0100 Organization: INTERIA.PL S.A. Lines: 10 Message-ID: References: <20160316000317 DOT 329b9cf8 AT _> NNTP-Posting-Host: user-164-127-34-93.play-internet.pl Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: usenet.news.interia.pl 1458122067 31977 164.127.34.93 (16 Mar 2016 09:54:27 GMT) X-Complaints-To: usenet AT firma DOT interia DOT pl NNTP-Posting-Date: Wed, 16 Mar 2016 09:54:27 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Bytes: 1451 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > So, you should be able to use __dpmi_unlock_linear_region() > by passing the same address and size as they were computed > in either _go32_dpmi_lock_code() or _go32_dpmi_lock_data(). > Look at the code in gopint.c to see how this is done. Thanks. Weird that there is no _go32_dpmi_unlock_code/data. -- Wiktor S.