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


In This Topic
    SetWindowsHookEx(Int32,ShellHookHandler,IntPtr,Int32) Method
    In This Topic
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function SetWindowsHookEx( _
       ByVal type As System.Integer, _
       ByVal hook As ShellHookHandler, _
       ByVal instance As System.IntPtr, _
       ByVal threadID As System.Integer _
    ) As System.IntPtr
    'Usage
     
    
    Dim type As System.Integer
    Dim hook As ShellHookHandler
    Dim instance As System.IntPtr
    Dim threadID As System.Integer
    Dim value As System.IntPtr
     
    value = NUser32.SetWindowsHookEx(type, hook, instance, threadID)
    public static System.IntPtr SetWindowsHookEx( 
       System.int type,
       ShellHookHandler hook,
       System.IntPtr instance,
       System.int 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