Re: System-wide hooking, VB+ASM
- From: "Karl E. Peterson" <karl@xxxxxxxx>
- Date: Thu, 2 Jun 2005 16:45:09 -0700
J French wrote:
>> 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.
I can't seem to force the crash here. Got the hook installing just fine, but not
reacting at all to other processes. I wonder if that's an OS difference? (Running
W2K/SP4 here.)
> 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.
My hunch is, in fact I'm well-near certain, that you'd need to initialize the runtime
on entrance.
--
Working Without a .NET?
http://classicvb.org/petition
.
- 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
- Prev by Date: Re: System-wide hooking, VB+ASM
- 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):