Winapi.Hooks
Unit Winapi.Hooks.pasClasses
- TCustomHook = class ( TObject )
- THook = class ( TCustomHook )
- TCallWndProcHook = class ( THook )
- TCallWndProcRetHook = class ( THook )
- TCBTHook = class ( THook )
- TDebugHook = class ( THook )
- TGetMessageHook = class ( THook )
- TJournalPlaybackHook = class ( THook )
- TJournalRecordHook = class ( THook )
- TKeyboardHook = class ( THook )
- TMouseHook = class ( THook )
- TMsgHook = class ( THook )
- TShellHook = class ( THook )
- TSysMsgHook = class ( THook )
- TLowLevelKeyboardHook = class ( THook )
- TLowLevelMouseHook = class ( THook )
- THookContainer`1 = class ( TComponent )
Records
- record THookMessage
- record KBDLLHOOKSTRUCT
- record TKBDLLHookStruct
- record TLowLevelKeyStates
- record TKeyNames
- record TKeyStates
- record THookInstance`1
Enumerations
- enum TKeyState = ( ksKeyDown, ksKeyIsDown, ksKeyUp ) ;
Constants
- const MAX_KEY_NAME_LENGTH : Integer = $64;
- const SHIFTED : Integer = $8000;
- const LLKHF_EXTENDED : Integer = $1;
- const LLKHF_INJECTED : Integer = $10;
- const LLKHF_ALTDOWN : Integer = $20;
- const LLKHF_UP : Integer = $80;
- const VK_A : Integer = $41;
- const VK_B : Integer = $42;
- const VK_C : Integer = $43;
- const VK_D : Integer = $44;
- const VK_E : Integer = $45;
- const VK_F : Integer = $46;
- const VK_G : Integer = $47;
- const VK_H : Integer = $48;
- const VK_I : Integer = $49;
- const VK_J : Integer = $4A;
- const VK_K : Integer = $4B;
- const VK_L : Integer = $4C;
- const VK_M : Integer = $4D;
- const VK_N : Integer = $4E;
- const VK_O : Integer = $4F;
- const VK_P : Integer = $50;
- const VK_Q : Integer = $51;
- const VK_R : Integer = $52;
- const VK_S : Integer = $53;
- const VK_T : Integer = $54;
- const VK_U : Integer = $55;
- const VK_V : Integer = $56;
- const VK_W : Integer = $57;
- const VK_X : Integer = $58;
- const VK_Y : Integer = $59;
- const VK_Z : Integer = $5A;
- const VK_0 : Integer = $30;
- const VK_1 : Integer = $31;
- const VK_2 : Integer = $32;
- const VK_3 : Integer = $33;
- const VK_4 : Integer = $34;
- const VK_5 : Integer = $35;
- const VK_6 : Integer = $36;
- const VK_7 : Integer = $37;
- const VK_8 : Integer = $38;
- const VK_9 : Integer = $39;
Mics. types
- type pKBDLLHOOKSTRUCT = pointer to KBDLLHOOKSTRUCT;
- type pLowLevelKeyStates = pointer to TLowLevelKeyStates;
- type pKeyNames = pointer to TKeyNames;
THookMessage
Fields
- public Msg :
Cardinal
- public WParam :
NativeUInt
- public LParam :
NativeInt
- public Result :
NativeInt
- public WParamLo :
Word
- public WParamHi :
Word
- public WParamFiller :
TDWordFiller
- public LParamLo :
Word
- public LParamHi :
Word
- public LParamFiller :
TDWordFiller
- public ResultLo :
Word
- public ResultHi :
Word
- public ResultFiller :
TDWordFiller
TCustomHook
Ancestors
Members
Fields
- class private FActive :
Boolean
- class private FHook :
HHOOK
- class private FHookProc :
Pointer
- class private FThreadID :
Integer
- class private FOnPreExecute :
THookNotify
- class private FOnPostExecute :
THookNotify
- class private FOnPostExecuteRef :
THookNotifyReference
- class private FOnPreExecuteRef :
THookNotifyReference
Methods
- public constructor Create ( ) ;
- public destructor Destroy ( ) ;
- class private procedure HookProc ( var HookMsg : TMessage ) ;
- class private procedure SetActive ( const Value : Boolean ) ;
- protected function GetHookID ( ) : Integer ; abstract virtual;
- protected procedure PreExecute ( var HookMsg : TMessage; var Handled : Boolean ) ; virtual;
- protected procedure PostExecute ( var HookMsg : TMessage ) ; virtual;
Properties
THook
Ancestors
Members
Properties
TCallWndProcHook
TCallWndProcRetHook
TDebugHook
TKeyboardHook
TLowLevelKeyboardHook
Ancestors
Members
Fields
- private FHookStruct :
KBDLLHOOKSTRUCT
- private FLowLevelKeyStates :
TLowLevelKeyStates
- private FKeyNames :
TKeyNames
Methods
- protected function GetHookID ( ) : Integer ; override;
- protected procedure PreExecute ( var HookMsg : TMessage; var Handled : Boolean ) ; override;
- protected procedure PostExecute ( var HookMsg : TMessage ) ; override;