🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4220

Locking Page in Memory

#4220
From: prunesquallor
Date: Wed, 08 Mar 2006 11:02
19 lines
1725 bytes
Dear All,

I want to lock a page in memory (the reason being it will hold cryptographic 
keys that I don't want swapped out) - so I don't want to grab much memory.

Research implies that Windows' VirtualLock will lock the page (such as the 
MS Documentation). But we've found an early version of the MS document which 
states that VirtualLock does not lock pages in physical memory, but in the 
process' working set (it's notable that the modern version of the MS 
documentation seems to be unclear). It this is the case then should the 
whole process be slung out to disk then the locked page will go with it.

Does anyone know the definitive truth, especially with regard to later OSs , 
and if VirtualLock is not useful how one can achieve this (preferably 
without writing low-level device drivers!)?

Thanks,

JB 
Technical Details
Message-ID: <440eb97d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a6a321b0cbcc9b74,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "prunesquallor" <prunesquallor@proproco.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Locking Page in Memory
Date: Wed, 8 Mar 2006 11:02:15 -0000
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 213.208.127.201
Message-ID: <440eb97d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141815677 213.208.127.201 (8 Mar 2006 03:01:17 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail