Nevron.Interop.Win32 Namespace / NUser32 Class / SetWindowsHookEx Method / SetWindowsHookEx(Int32,WndProcHookHandler,IntPtr,Int32) Method


SetWindowsHookEx(Int32,WndProcHookHandler,IntPtr,Int32) Method
Syntax
'Declaration
 
Public Overloads Shared Function SetWindowsHookEx( _
   ByVal type As System.Integer, _
   ByVal hook As WndProcHookHandler, _
   ByVal instance As System.IntPtr, _
   ByVal threadID As System.Integer _
) As System.IntPtr
 
'Usage
 
Dim type As System.Integer
Dim hook As WndProcHookHandler
Dim instance As System.IntPtr
Dim threadID As System.Integer
Dim value As System.IntPtr
 
value = NUser32.SetWindowsHookEx(type, hook, instance, threadID)

Parameters

type
hook
instance
threadID
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also