1. given a process, is there a way to know what is the reference count
of each DLL in the process?
2. given a DLL loaded in a process, is there a way to change its entry
point and intercept the OS calls to DllMain (DLL_PROCESS_DETACH)?
Thanks in advance,
-- Paolo
For #2, unless the DllMain entry point is exported, then the answer is
generally no, since you have no idea *where* the function might be! Even if
it is exported, the effort required to write to the read-only section of
memory containing the code is pretty hacky. :-(
What are you trying to do, specifically? Maybe there is a better way?
--
MichKa
the only book on internationalization in VB at
http://www.i18nWithVB.com/
"Paolo Severini" <pao...@ares.omninet.it> wrote in message
news:#gUJrJUsAHA.1636@tkmsftngp05...
Thanks again for your help,
-- Paolo
"Michael (michka) Kaplan" <forme...@spamfree.trigeminal.nospam.com> wrote
in message news:uHdqWXUsAHA.2344@tkmsftngp05...
--
MichKa
the only book on internationalization in VB at
http://www.i18nWithVB.com/
"Paolo Severini" <pao...@ares.omninet.it> wrote in message
news:OBxMmmUsAHA.2152@tkmsftngp03...
-- paolo
"Michael (michka) Kaplan" <forme...@spamfree.trigeminal.nospam.com> wrote
in message news:umYzGqUsAHA.320@tkmsftngp05...
--
MichKa
the only book on internationalization in VB at
http://www.i18nWithVB.com/
"Paolo Severini" <pao...@ares.omninet.it> wrote in message
news:e3ZOv$UsAHA.1456@tkmsftngp04...