ReactOS 0.4.15-dev-8235-gcd88a97
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 */
22typedef 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)
43typedef struct _ICONIMAGE
44{
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
51typedef struct _CURSORIMAGE
52{
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
59typedef struct
60{
66
67typedef struct
68{
72
73typedef 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
79typedef struct
80{
83} CURSORDIR;
84
85typedef struct
86{ union
87 {
96
97typedef struct
98{
102 CURSORICONDIRENTRY idEntries[1];
104
105typedef struct
106{
107 union
108 {
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
118typedef 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
127typedef struct _THRDCARETINFO
128{
136
137#endif
ULONG RGBQUAD
Definition: precomp.h:59
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
static HBITMAP
Definition: button.c:44
struct USERPREFERENCESMASK * PUSERPREFERENCESMASK
struct _THRDCARETINFO THRDCARETINFO
struct _ICONIMAGE ICONIMAGE
struct _CURSORIMAGE CURSORIMAGE
struct _ICONIMAGE * LPICONIMAGE
struct _THRDCARETINFO * PTHRDCARETINFO
struct _CURSORIMAGE * LPCURSORIMAGE
IPHLP_RES_INFO ResInfo
Definition: resinfo.c:52
WORD wHeight
Definition: ntusrtyp.h:82
WORD wWidth
Definition: ntusrtyp.h:81
ICONRESDIR icon
Definition: ntusrtyp.h:88
DWORD dwBytesInRes
Definition: ntusrtyp.h:93
CURSORRESDIR cursor
Definition: ntusrtyp.h:89
WORD idReserved
Definition: ntusrtyp.h:99
WORD idCount
Definition: ntusrtyp.h:101
WORD wWidth
Definition: ntusrtyp.h:69
WORD wHeight
Definition: ntusrtyp.h:70
CURSORRESDIR cursor
Definition: ntusrtyp.h:110
WORD wBitCount
Definition: ntusrtyp.h:76
WORD wPlanes
Definition: ntusrtyp.h:75
BYTE bReserved
Definition: ntusrtyp.h:64
BYTE bColorCount
Definition: ntusrtyp.h:63
BYTE bHeight
Definition: ntusrtyp.h:62
BYTE bWidth
Definition: ntusrtyp.h:61
DWORD bMenuAnimation
Definition: ntusrtyp.h:24
DWORD bListBoxSmoothScrolling
Definition: ntusrtyp.h:26
DWORD bSelectionFade
Definition: ntusrtyp.h:33
DWORD bGradientCaptions
Definition: ntusrtyp.h:27
DWORD bActiveWindowTracking
Definition: ntusrtyp.h:23
DWORD bActiveWndTrkZorder
Definition: ntusrtyp.h:29
DWORD bComboBoxAnimation
Definition: ntusrtyp.h:25
DWORD bTooltipAnimation
Definition: ntusrtyp.h:34
RGBQUAD icColors[1]
Definition: ntusrtyp.h:54
BYTE icXOR[1]
Definition: ntusrtyp.h:55
BITMAPINFOHEADER icHeader
Definition: ntusrtyp.h:53
BYTE icAND[1]
Definition: ntusrtyp.h:56
BYTE icAND[1]
Definition: ntusrtyp.h:48
BYTE icXOR[1]
Definition: ntusrtyp.h:47
RGBQUAD icColors[1]
Definition: ntusrtyp.h:46
BITMAPINFOHEADER icHeader
Definition: ntusrtyp.h:45
HBITMAP Bitmap
Definition: ntusrtyp.h:130
unsigned char BYTE
Definition: xxhash.c:193