🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1180

Using GlobalWire() on resources

#1180
From: James Seidman
Date: Thu, 31 Jan 1991 17:07
23 lines
1510 bytes
We all know about using LockResource() as the equivalent of GlobalLock()
to keep a resource put.  We also all know that you should use GlobalWire()
instead of GlobalLock() if you're going to be keeping the resource locked
for a long time.  Now, it seems to me that there should be some equivalent
WireResource() call to relocate the resource into the bottom of memory
and lock it there.

Since there isn't a call like this, I've tried just passing
GlobalWire() a handle to a resource and keeping my fingers crossed.
This seems to work OK as long as access the resource immediately
before this to insure that it is currently loaded.

Now, am I courting disaster by doing this?  I sometimes have to lock
these resources for hours (and don't flame me on that... I really do
need to have them locked) and I hate the thought of leaving them
fragmenting memory space.

-- 
Jim Seidman (Drax), the accidental engineer.
"It doesn't have to work... they'll be paralyzed just from laughing at me."
							- Dr. Who, _Shada_
UUCP: ames!vsi1!hsv3!jls	         INTERNET: hsv3.UUCP!jls@apple.com
Technical Details
Message-ID: <6912@hsv3.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!usc!apple!vsi1!hsv3!jls

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!usc!apple!vsi1!hsv3!jls
From: jls@hsv3.UUCP (James Seidman)
Newsgroups: comp.windows.ms.programmer
Subject: Using GlobalWire() on resources
Message-ID: <6912@hsv3.UUCP>
Date: 31 Jan 91 17:07:04 GMT
Reply-To: jls@hsv3.UUCP (James Seidman)
Organization: Video Seven / Headland Technology
Lines: 23