Re: System-wide hooking, VB+ASM
- From: "Jonathan Wood" <jwood@xxxxxxxxxxxxxxxx>
- Date: Fri, 3 Jun 2005 09:02:57 -0600
J French,
> Just thinking out loud, the DLL must be capable of initializing the
> run time itself, as one can use a VB DLL happily from another
> language, my guess is that is done by the LibMain routine
It can? According to a link someone posted the other day, the key to calling
exports from a VB DLL is to perform a couple of tricks when loading the DLL:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=54682&lngWId=1
I was having a little problem with some test code though. I really would
like to see a small demo that installs a WH_KEYBOARD hook and crashes when a
key is hit in another project.
> I can't quite get my head around the initialization sequence, but I am
> certain that LibMain is called both on normal LoadLibrary and when it
> is being mapped into another process. I've seen that in Delphi.
I was wondering about that as well. It's not clear to me if Sub Main in a
DLL corresponds to a call to LibMain or what exactly.
--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm
.
- Follow-Ups:
- Re: System-wide hooking, VB+ASM
- From: J French
- Re: System-wide hooking, VB+ASM
- References:
- Re: System-wide hooking, VB+ASM
- From: J French
- Re: System-wide hooking, VB+ASM
- From: Sam Hobbs
- Re: System-wide hooking, VB+ASM
- From: J French
- Re: System-wide hooking, VB+ASM
- From: Karl E. Peterson
- Re: System-wide hooking, VB+ASM
- From: J French
- Re: System-wide hooking, VB+ASM
- Prev by Date: Re: Using Visual Basic to Write System-Wide Hooks
- Next by Date: Re: System-wide hooking, VB+ASM
- Previous by thread: Re: System-wide hooking, VB+ASM
- Next by thread: Re: System-wide hooking, VB+ASM
- Index(es):
Relevant Pages
|
Loading