home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
-