Article View: comp.os.ms-windows.programmer.misc
Article #2183Windows DLLs
From: David Long
Date: Sat, 21 Nov 1992 07:13
Date: Sat, 21 Nov 1992 07:13
13 lines
1101 bytes
1101 bytes
Why would you want to do this? Does your DLL carry out some passive activity based on interrupts or some other asynchronous event? One way to achieve this effect is to list your DLL on the LOAD= line in WIN.INI so that it gets loaded as Windows boots and stays there until Windows shuts down. Another way is for your DLL to be loaded by some application, then to immediately do a LoadLibrary() on itself to increase its usage count from 1 to 2. Then when the app that used it terminates, Windows decrements your DLL's usage count from 2 to 1 and leaves it in memory. David Long Microsoft Developer Network
Technical Details
Message-ID:
<40nq63h@microsoft.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!microsoft!aliasgate!davidlShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!microsoft!aliasgate!davidl From: David Long <davidl@microsoft.com> Newsgroups: comp.os.ms-windows.programmer.misc Subject: Windows DLLs Sender: davidl@microsoft.com Message-ID: <40nq63h@microsoft.com> Date: 21 Nov 92 07:13:55 GMT Lines: 13 X-MSMail-Message-ID: 74501A56 X-MSMail-Conversation-ID: 74501A56 X-MSMail-WiseRemark: Microsoft Mail -- 3.0.729 To: netnews