Re: System-wide hooking, VB+ASM
- From: erewhon@xxxxxxxxxx (J French)
- Date: Thu, 2 Jun 2005 10:34:09 +0000 (UTC)
On Wed, 1 Jun 2005 20:11:13 -0700, "Sam Hobbs"
<samuel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>"J French" <erewhon@xxxxxxxxxx> wrote in message
>news:429d9ab8.182192964@xxxxxxxxxxxxxxxxxxx
>>
>> The real question is: 'can you use an AX DLL for systemwide hooks ?'
>
>Actually, the question of the meaning of "regular DLL" and the related
>discussion is also real.
>> The answer is,
>> if it has the basic chassis of a 'real' DLL, then you can
>Unless you have, or are aware of, a real example of that then you can't say
>it is possible. Do you have an example of a system-wide hook using just VB?
>In other words, not using additional tools not provided with VB and/or not
>documented in the MSDN.
I have just done some experiments (with the usual horrendous crashes)
and have /not/ managed to make it work reliably.
A system wide keyboard hook installs and uninstalls Ok, but I got
crashes when the DLL was being mapped into another process's address
space.
Since the mapping takes place 'on demand' (ie: when you press a key
over another App) it is difficult to tell whether it is the mapping
that is causing the crash, or the actual hook routine.
I'm a little wary of playing with this as crashes are pretty
unpleasant
- for me the fact that I have not got it working, does not mean it is
impossible.
.
- Follow-Ups:
- Re: System-wide hooking, VB+ASM
- From: Karl E. Peterson
- Re: System-wide hooking, VB+ASM
- From: Jonathan Wood
- Re: System-wide hooking, VB+ASM
- From: Sam Hobbs
- Re: System-wide hooking, VB+ASM
- From: Paul Clement
- 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
- Prev by Date: Re: Can VB Create a Regular DLL?
- Next by Date: Re: Using Visual Basic to Write System-Wide Hooks
- Previous by thread: Re: System-wide hooking, VB+ASM
- Next by thread: Re: System-wide hooking, VB+ASM
- Index(es):
Relevant Pages
|