Help for this page

Select Code to Download


  1. or download this
    package Kbh;
    our $VERSION = '0.01';
    ...
        
    }
    1;
    
  2. or download this
    use ExtUtils::MakeMaker;
    WriteMakefile (
    ...
        VERSION => '0.01',
        OBJECT => 'hook.o Kbh.o',
    );
    
  3. or download this
    LRESULT CALLBACK HookCallback(int nCode, WPARAM wParam, LPARAM lParam)
    +;
    void processKey();
    void register_hook();
    void unregister_hook();
    void MsgLoop();
    
  4. or download this
    #include <windows.h>
    #include <WinAble.h>
    ...
        UnhookWindowsHookEx(hook);
    
    }
    
  5. or download this
    #include "EXTERN.h"
    #include "perl.h"
    ...
            count= call_pv("Kbh::process_key", G_DISCARD|G_NOARGS); 
        if (count != 0)
            croak("Big trouble\n");
    
  6. or download this
    Perl Makefile.pl
    dmake
    
  7. or download this
    use lib qw(./lib ./blib/arch/auto/Kbh);
    use Kbh;
    Kbh::register_hook();
    Kbh::MsgLoop;
    Kbh::unregister_hook();