Re: System-wide hooking, VB+ASM

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.


.



Relevant Pages

  • Re: System-wide hooking, VB+ASM
    ... > The real question is: 'can you use an AX DLL for systemwide hooks ?' ... the question of the meaning of "regular DLL" and the related ...
    (microsoft.public.vb.winapi)
  • Re: Injecting DLL to a process?
    ... try to use systemwide hooks to load Your DLL containing the ... > I want to inject dll to some system app. ... >> There is an article from MS mentioned changing a registry entry, ...
    (microsoft.public.pocketpc.developer)
  • Re: Dll Security
    ... The real question you should be asking is 'what is the point?' ... make it unusable (if it just crashes, it tells the cracker just what she ... DLL cause all sorts of nasty problems for them (not to mention the support ... i'm using EFS to protect my plain-text dll. ...
    (SecProg)
  • Re: System-wide hooking, VB+ASM
    ... >What context are you referring to? ... The real question is: 'can you use an AX DLL for systemwide hooks ?' ...
    (microsoft.public.vb.winapi)