Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

MOUSEHOOKSTRUCT (Structures)
 
.
Summary
Structure to retrieve information about a WH_MOUSE hook.

C# Definition:

[StructLayout(LayoutKind.Sequential)]
struct Point
{
    public int X;
    public int Y;
}

[StructLayout(LayoutKind.Sequential)]
struct MOUSEHOOKSTRUCT
{
    public Point pt;
    public IntPtr hwnd;
    public uint wHitTestCode;
    public IntPtr dwExtraInfo;
}

[StructLayout(LayoutKind.Sequential)]
struct MouseHookStructEx
{
    public MOUSEHOOKSTRUCT mouseHookStruct;
    public int MouseData;
}

VB Definition:

    <StructLayout(LayoutKind.Sequential)>
    Private Structure Point
    Public X As Int32
    Public Y As Int32
    End Structure

    <StructLayout(LayoutKind.Sequential)>
    Private Structure MOUSEHOOKSTRUCT
    Public pt As Point
    Public hwnd As IntPtr
    Public wHitTestCode As UInt32
    Public dwExtraInfo As IntPtr
    End Structure

    <StructLayout(LayoutKind.Sequential)>
    Private Structure MouseHookStructEx
    Public mouseHookStruct As MOUSEHOOKSTRUCT
    Public MouseData As Int32
    End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions