Re: [GD-General] Spy on windows 2k &Xp
Brought to you by:
vexxed72
From: Javier A. <ja...@py...> - 2003-06-23 16:42:27
|
Vincent DUVERNET wrote: > But how determine is DLL already unloaded ? I'm not sure if you really need to know that previously, because I don't understand the nature of the task you're trying to achieve. Any process can load a DLL regardless whether it's already loaded. These two pieces from MSDN might shed more light into your problem. "Each process maintains a reference count for each loaded library module. This reference count is incremented each time LoadLibrary is called and is decremented each time FreeLibrary is called." ------- "The GetModuleHandle function returns a handle to a mapped module without incrementing its reference count. Therefore, use care when passing the handle to the FreeLibrary function, because doing so can cause a DLL module to be unmapped prematurely." Javier Arevalo Pyro Studios |