Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ntddmou.h
00001 /* 00002 * ntddmou.h 00003 * 00004 * Mouse device IOCTL interface. 00005 * 00006 * This file is part of the w32api package. 00007 * 00008 * Contributors: 00009 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net> 00010 * 00011 * THIS SOFTWARE IS NOT COPYRIGHTED 00012 * 00013 * This source code is offered for use in the public domain. You may 00014 * use, modify or distribute it freely. 00015 * 00016 * This code is distributed in the hope that it will be useful but 00017 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY 00018 * DISCLAIMED. This includes but is not limited to warranties of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00020 * 00021 */ 00022 00023 #ifndef __NTDDMOU_H 00024 #define __NTDDMOU_H 00025 00026 #if __GNUC__ >=3 00027 #pragma GCC system_header 00028 #endif 00029 00030 #ifdef __cplusplus 00031 extern "C" { 00032 #endif 00033 00034 #include "ntddk.h" 00035 00036 #define DD_MOUSE_DEVICE_NAME "\\Device\\PointerClass" 00037 #define DD_MOUSE_DEVICE_NAME_U L"\\Device\\PointerClass" 00038 00039 #define IOCTL_MOUSE_QUERY_ATTRIBUTES \ 00040 CTL_CODE(FILE_DEVICE_MOUSE, 0, METHOD_BUFFERED, FILE_ANY_ACCESS) 00041 00042 DEFINE_GUID(GUID_DEVINTERFACE_MOUSE, \ 00043 0x378de44c, 0x56ef, 0x11d1, 0xbc, 0x8c, 0x00, 0xa0, 0xc9, 0x14, 0x05, 0xdd); 00044 00045 #define MOUSE_ERROR_VALUE_BASE 20000 00046 00047 /* MOUSE_INPUT_DATA.ButtonFlags constants */ 00048 #define MOUSE_LEFT_BUTTON_DOWN 0x0001 00049 #define MOUSE_LEFT_BUTTON_UP 0x0002 00050 #define MOUSE_RIGHT_BUTTON_DOWN 0x0004 00051 #define MOUSE_RIGHT_BUTTON_UP 0x0008 00052 #define MOUSE_MIDDLE_BUTTON_DOWN 0x0010 00053 #define MOUSE_MIDDLE_BUTTON_UP 0x0020 00054 #define MOUSE_BUTTON_4_DOWN 0x0040 00055 #define MOUSE_BUTTON_4_UP 0x0080 00056 #define MOUSE_BUTTON_5_DOWN 0x0100 00057 #define MOUSE_BUTTON_5_UP 0x0200 00058 #define MOUSE_WHEEL 0x0400 00059 00060 #define MOUSE_BUTTON_1_DOWN MOUSE_LEFT_BUTTON_DOWN 00061 #define MOUSE_BUTTON_1_UP MOUSE_LEFT_BUTTON_UP 00062 #define MOUSE_BUTTON_2_DOWN MOUSE_RIGHT_BUTTON_DOWN 00063 #define MOUSE_BUTTON_2_UP MOUSE_RIGHT_BUTTON_UP 00064 #define MOUSE_BUTTON_3_DOWN MOUSE_MIDDLE_BUTTON_DOWN 00065 #define MOUSE_BUTTON_3_UP MOUSE_MIDDLE_BUTTON_UP 00066 00067 /* MOUSE_INPUT_DATA.Flags constants */ 00068 #define MOUSE_MOVE_RELATIVE 0 00069 #define MOUSE_MOVE_ABSOLUTE 1 00070 #define MOUSE_VIRTUAL_DESKTOP 0x02 00071 #define MOUSE_ATTRIBUTES_CHANGED 0x04 00072 00073 typedef struct _MOUSE_INPUT_DATA { 00074 USHORT UnitId; 00075 USHORT Flags; 00076 _ANONYMOUS_UNION union { 00077 ULONG Buttons; 00078 _ANONYMOUS_STRUCT struct { 00079 USHORT ButtonFlags; 00080 USHORT ButtonData; 00081 } DUMMYSTRUCTNAME; 00082 } DUMMYUNIONNAME; 00083 ULONG RawButtons; 00084 LONG LastX; 00085 LONG LastY; 00086 ULONG ExtraInformation; 00087 } MOUSE_INPUT_DATA, *PMOUSE_INPUT_DATA; 00088 00089 typedef struct _MOUSE_UNIT_ID_PARAMETER { 00090 USHORT UnitId; 00091 } MOUSE_UNIT_ID_PARAMETER, *PMOUSE_UNIT_ID_PARAMETER; 00092 00093 /* MOUSE_ATTRIBUTES.MouseIdentifier constants */ 00094 #define MOUSE_INPORT_HARDWARE 0x0001 00095 #define MOUSE_I8042_HARDWARE 0x0002 00096 #define MOUSE_SERIAL_HARDWARE 0x0004 00097 #define BALLPOINT_I8042_HARDWARE 0x0008 00098 #define BALLPOINT_SERIAL_HARDWARE 0x0010 00099 #define WHEELMOUSE_I8042_HARDWARE 0x0020 00100 #define WHEELMOUSE_SERIAL_HARDWARE 0x0040 00101 #define MOUSE_HID_HARDWARE 0x0080 00102 #define WHEELMOUSE_HID_HARDWARE 0x0100 00103 00104 typedef struct _MOUSE_ATTRIBUTES { 00105 USHORT MouseIdentifier; 00106 USHORT NumberOfButtons; 00107 USHORT SampleRate; 00108 ULONG InputDataQueueLength; 00109 } MOUSE_ATTRIBUTES, *PMOUSE_ATTRIBUTES; 00110 00111 #ifdef __cplusplus 00112 } 00113 #endif 00114 00115 #endif /* __NTDDMOU_H */
Generated on Tue Jul 12 2022 19:59:54 by
