ReactOS  0.4.14-dev-323-g6fe6a88
ntusrtyp.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS Win32 Graphical Subsystem (WIN32K)
4  * FILE: win32ss/include/ntusrtyp.h
5  * PURPOSE: Win32 Shared USER Types for NtUser*
6  * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
7  */
8 
9 /* INCLUDES ******************************************************************/
10 
11 #ifndef _NTUSRTYP_
12 #define _NTUSRTYP_
13 
14 #include <ntwin32.h>
15 
16 /* ENUMERATIONS **************************************************************/
17 
18 /* TYPES *********************************************************************/
19 
20 /* Bitfields for UserpreferencesMask SPI_ values (with defaults) */
21 /* See also http://technet.microsoft.com/nl-nl/library/cc957204(en-us).aspx */
22 typedef struct {
23  DWORD bActiveWindowTracking:1; //0 SPI_GETACTIVEWINDOWTRACKING
24  DWORD bMenuAnimation:1; //1 SPI_GETMENUANIMATION
25  DWORD bComboBoxAnimation:1; //1 SPI_GETCOMBOBOXANIMATION
26  DWORD bListBoxSmoothScrolling:1; //1 SPI_GETLISTBOXSMOOTHSCROLLING
27  DWORD bGradientCaptions:1; //1 SPI_GETGRADIENTCAPTIONS
28  DWORD bKeyboardCues:1; //0 SPI_GETKEYBOARDCUES
29  DWORD bActiveWndTrkZorder:1; //0 SPI_GETACTIVEWNDTRKZORDER
30  DWORD bHotTracking:1; //1 SPI_GETHOTTRACKING
31  DWORD bReserved1:1; //0 Reserved
32  DWORD bMenuFade:1; //1 SPI_GETMENUFADE
33  DWORD bSelectionFade:1; //1 SPI_GETSELECTIONFADE
34  DWORD bTooltipAnimation:1; //1 SPI_GETTOOLTIPANIMATION
35  DWORD bTooltipFade:1; //1 SPI_GETTOOLTIPFADE
36  DWORD bCursorShadow:1; //1 SPI_GETCURSORSHADOW
37  DWORD bReserved2:17; //0 Reserved
38  DWORD bUiEffects:1; //1 SPI_GETUIEFFECTS
40 
41 /* Structures for reading icon/cursor files and resources */
42 #pragma pack(push,1)
43 typedef struct _ICONIMAGE
44 {
45  BITMAPINFOHEADER icHeader; // DIB header
46  RGBQUAD icColors[1]; // Color table
47  BYTE icXOR[1]; // DIB bits for XOR mask
48  BYTE icAND[1]; // DIB bits for AND mask
50 
51 typedef struct _CURSORIMAGE
52 {
53  BITMAPINFOHEADER icHeader; // DIB header
54  RGBQUAD icColors[1]; // Color table
55  BYTE icXOR[1]; // DIB bits for XOR mask
56  BYTE icAND[1]; // DIB bits for AND mask
58 
59 typedef struct
60 {
65 } ICONRESDIR;
66 
67 typedef struct
68 {
71 } CURSORRESDIR;
72 
73 typedef struct
74 {
75  WORD wPlanes; // Number of Color Planes in the XOR image
76  WORD wBitCount; // Bits per pixel in the XOR image
77 } ICONDIR;
78 
79 typedef struct
80 {
83 } CURSORDIR;
84 
85 typedef struct
86 { union
87  {
90  } ResInfo;
96 
97 typedef struct
98 {
102  CURSORICONDIRENTRY idEntries[1];
103 } CURSORICONDIR;
104 
105 typedef struct
106 {
107  union
108  {
111  } ResInfo;
112  WORD wPlanes; // Color Planes
113  WORD wBitCount; // Bits per pixel
114  DWORD dwBytesInRes; // how many bytes in this resource?
115  WORD nID; // the ID
117 
118 typedef struct
119 {
120  WORD idReserved; // Reserved (must be 0)
121  WORD idType; // Resource type (1 for icons)
122  WORD idCount; // How many images?
123  GRPCURSORICONDIRENTRY idEntries[1]; // The entries for each image
125 #pragma pack(pop)
126 
127 typedef struct _THRDCARETINFO
128 {
136 
137 #endif
struct _CURSORIMAGE CURSORIMAGE
CURSORRESDIR cursor
Definition: ntusrtyp.h:89
WORD idCount
Definition: ntusrtyp.h:101
WORD wHeight
Definition: ntusrtyp.h:82
struct _ICONIMAGE * LPICONIMAGE
DWORD bSelectionFade
Definition: ntusrtyp.h:33
RGBQUAD icColors[1]
Definition: ntusrtyp.h:46
DWORD bListBoxSmoothScrolling
Definition: ntusrtyp.h:26
IPHLP_RES_INFO ResInfo
Definition: resinfo.c:52
WORD idReserved
Definition: ntusrtyp.h:99
BYTE icAND[1]
Definition: ntusrtyp.h:48
struct USERPREFERENCESMASK * PUSERPREFERENCESMASK
DWORD bMenuAnimation
Definition: ntusrtyp.h:24
struct _THRDCARETINFO * PTHRDCARETINFO
HBITMAP Bitmap
Definition: ntusrtyp.h:130
BYTE bReserved
Definition: ntusrtyp.h:64
WORD wWidth
Definition: ntusrtyp.h:81
BITMAPINFOHEADER icHeader
Definition: ntusrtyp.h:45
struct _CURSORIMAGE * LPCURSORIMAGE
DWORD bActiveWndTrkZorder
Definition: ntusrtyp.h:29
DWORD bTooltipAnimation
Definition: ntusrtyp.h:34
WORD wHeight
Definition: ntusrtyp.h:70
BYTE icXOR[1]
Definition: ntusrtyp.h:47
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
struct _ICONIMAGE ICONIMAGE
DWORD bComboBoxAnimation
Definition: ntusrtyp.h:25
unsigned char BYTE
Definition: mem.h:68
WORD wBitCount
Definition: ntusrtyp.h:76
BYTE icAND[1]
Definition: ntusrtyp.h:56
BYTE bColorCount
Definition: ntusrtyp.h:63
DWORD bGradientCaptions
Definition: ntusrtyp.h:27
BYTE bHeight
Definition: ntusrtyp.h:62
static HBITMAP
Definition: button.c:44
ICONRESDIR icon
Definition: ntusrtyp.h:88
DWORD bActiveWindowTracking
Definition: ntusrtyp.h:23
WORD wWidth
Definition: ntusrtyp.h:69
BITMAPINFOHEADER icHeader
Definition: ntusrtyp.h:53
struct _THRDCARETINFO THRDCARETINFO
WORD wPlanes
Definition: ntusrtyp.h:75
RGBQUAD icColors[1]
Definition: ntusrtyp.h:54
DWORD dwBytesInRes
Definition: ntusrtyp.h:93
BYTE bWidth
Definition: ntusrtyp.h:61
BYTE icXOR[1]
Definition: ntusrtyp.h:55
CURSORRESDIR cursor
Definition: ntusrtyp.h:110