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

MOUSE_EVENT_RECORD (Structures)
 
.
Summary
The MOUSE_EVENT_RECORD structure is used in a console INPUT_RECORD structure to report mouse input events.

C# Definition:

    [StructLayout(LayoutKind.Sequential)]
    public struct MOUSE_EVENT_RECORD
    {    
        public COORD dwMousePosition;
        public uint dwButtonState;
        public uint dwControlKeyState;
        public uint dwEventFlags;
    }

VB Definition:

Structure MOUSE_EVENT_RECORD
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

This one seems busted. I added it because there wasn't one, but when I try to capture this event, dwMousePosition.X is always 1 except when Y is 0, then X == 1 || X == 0

UPDATE:

For some weird reason, setting the offsets to the above settings will make this structure work properly. I can't seem to find any rhyme or reason for it, especially the last fields. If anyone finds out why this works, or, if indeed it doesn't work for you please update this entry accordingly.

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
Find References
Show Printable Version
Revisions