[This is preliminary documentation and is subject to change.]

If implemented in derived class gets module handle pased to hMod parameter of SetWindowsHookEx Win32 API function

Namespace: Tools.API.Hooks
Assembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
protected virtual IntPtr GetModuleHandle()
Visual Basic
Protected Overridable Function GetModuleHandle As IntPtr
Visual C++
protected:
virtual IntPtr GetModuleHandle()
F#
abstract GetModuleHandle : unit -> IntPtr 
override GetModuleHandle : unit -> IntPtr 
JScript
protected function GetModuleHandle() : IntPtr

Return Value

This implementation returns Zero

Remarks

For some types of hooks it may be necesary to return correct module ID from this method, while another kinds works with Zero

See Also