Re: DllMain vs. DllMain
- From: "Eugene Gershnik" <gershnik@xxxxxxxxxxx>
- Date: Mon, 30 Jan 2006 18:02:19 -0800
In theory on some future non NT-based implementation of Win32 HINSTANCE (==
HMODULE) may not be void * and not compatible with HANDLEs. In practice this
is almost unthinkable. Lots of Win32 code assumes HMODULE is a pointer to
the beginning of DLL in memory. Lots of Win32 code (including VC CRT)
assumes that HANDLE is void *. Together these facts mean that for the
foreseeable future HANDLE is going to be freely interchangeable with
HMODULE.
Note that on NT based systems HANDLEs are designed to be compatible with
HINSTANCEs. AFAIK the native NT API functions that deal
with DLLs (LdrXXX family) are all defined in terms of HANDLEs.
--
Eugene
http://www.gershnik.com
.
- References:
- DllMain vs. DllMain
- From: Norman Diamond
- Re: DllMain vs. DllMain
- From: Arkady Frenkel
- Re: DllMain vs. DllMain
- From: Norman Diamond
- DllMain vs. DllMain
- Prev by Date: Re: DllMain vs. DllMain
- Next by Date: Re: DllMain vs. DllMain
- Previous by thread: Re: DllMain vs. DllMain
- Next by thread: Re: DllMain vs. DllMain
- Index(es):
Relevant Pages
|