ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

ntusrtyp.h
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:       See COPYING in the top level directory
00003  * PROJECT:         ReactOS Win32 Graphical Subsystem (WIN32K)
00004  * FILE:            include/win32k/ntusrtyp.h
00005  * PURPOSE:         Win32 Shared USER Types for NtUser*
00006  * PROGRAMMER:      Alex Ionescu (alex@relsoft.net)
00007  */
00008 
00009 /* INCLUDES ******************************************************************/
00010 
00011 #ifndef _NTUSRTYP_
00012 #define _NTUSRTYP_
00013 
00014 /* ENUMERATIONS **************************************************************/
00015 
00016 /* TYPES *********************************************************************/
00017 
00018 typedef struct _PATRECT
00019 {
00020     RECT r;
00021     HBRUSH hBrush;
00022 } PATRECT, * PPATRECT;
00023 
00024 /* Bitfields for UserpreferencesMask SPI_ values (with defaults) */
00025 /* See also http://technet.microsoft.com/nl-nl/library/cc957204(en-us).aspx */
00026 typedef struct {
00027     DWORD bActiveWindowTracking:1;      //0 SPI_GETACTIVEWINDOWTRACKING
00028     DWORD bMenuAnimation:1;             //1 SPI_GETMENUANIMATION
00029     DWORD bComboBoxAnimation:1;         //1 SPI_GETCOMBOBOXANIMATION
00030     DWORD bListBoxSmoothScrolling:1;    //1 SPI_GETLISTBOXSMOOTHSCROLLING
00031     DWORD bGradientCaptions:1;          //1 SPI_GETGRADIENTCAPTIONS
00032     DWORD bKeyboardCues:1;              //0 SPI_GETKEYBOARDCUES
00033     DWORD bActiveWndTrkZorder:1;        //0 SPI_GETACTIVEWNDTRKZORDER
00034     DWORD bHotTracking:1;               //1 SPI_GETHOTTRACKING
00035     DWORD bReserved1:1;                 //0 Reserved
00036     DWORD bMenuFade:1;                  //1 SPI_GETMENUFADE
00037     DWORD bSelectionFade:1;             //1 SPI_GETSELECTIONFADE
00038     DWORD bTooltipAnimation:1;          //1 SPI_GETTOOLTIPANIMATION
00039     DWORD bTooltipFade:1;               //1 SPI_GETTOOLTIPFADE
00040     DWORD bCursorShadow:1;              //1 SPI_GETCURSORSHADOW
00041     DWORD bReserved2:17;                //0 Reserved
00042     DWORD bUiEffects:1;                 //1 SPI_GETUIEFFECTS
00043 } USERPREFERENCESMASK, *PUSERPREFERENCESMASK;
00044 
00045 /* Structures for reading icon/cursor files and resources */
00046 #pragma pack(push,1)
00047 typedef struct _ICONIMAGE
00048 {
00049     BITMAPINFOHEADER icHeader;      // DIB header
00050     RGBQUAD icColors[1];            // Color table
00051     BYTE icXOR[1];                  // DIB bits for XOR mask
00052     BYTE icAND[1];                  // DIB bits for AND mask
00053 } ICONIMAGE, *LPICONIMAGE;
00054 
00055 typedef struct _CURSORIMAGE
00056 {
00057     BITMAPINFOHEADER icHeader;       // DIB header
00058     RGBQUAD icColors[1];             // Color table
00059     BYTE icXOR[1];                   // DIB bits for XOR mask
00060     BYTE icAND[1];                   // DIB bits for AND mask
00061 } CURSORIMAGE, *LPCURSORIMAGE;
00062 
00063 typedef struct
00064 {
00065     BYTE bWidth;
00066     BYTE bHeight;
00067     BYTE bColorCount;
00068     BYTE bReserved;
00069 } ICONRESDIR;
00070 
00071 typedef struct
00072 {
00073     WORD wWidth;
00074     WORD wHeight;
00075 } CURSORRESDIR;
00076 
00077 typedef struct
00078 {
00079     WORD wPlanes;                   // Number of Color Planes in the XOR image
00080     WORD wBitCount;                 // Bits per pixel in the XOR image
00081 } ICONDIR;
00082 
00083 typedef struct
00084 {
00085     WORD   wWidth;
00086     WORD   wHeight;
00087 } CURSORDIR;
00088 
00089 typedef struct
00090 {   union
00091     { ICONRESDIR icon;
00092       CURSORDIR  cursor;
00093     } ResInfo;
00094     WORD   wPlanes;
00095     WORD   wBitCount;
00096     DWORD  dwBytesInRes;
00097     WORD   wResId;
00098 } CURSORICONDIRENTRY;
00099 
00100 typedef struct
00101 {
00102     WORD                idReserved;
00103     WORD                idType;
00104     WORD                idCount;
00105     CURSORICONDIRENTRY  idEntries[1];
00106 } CURSORICONDIR;
00107 
00108 typedef struct
00109 {
00110     union
00111     {
00112         ICONRESDIR icon;
00113         CURSORRESDIR cursor;
00114     } ResInfo;
00115     WORD wPlanes;                   // Color Planes
00116     WORD wBitCount;                 // Bits per pixel
00117     DWORD dwBytesInRes;             // how many bytes in this resource?
00118     WORD nID;                       // the ID
00119 } GRPCURSORICONDIRENTRY;
00120 
00121 typedef struct
00122 {
00123     WORD idReserved;                    // Reserved (must be 0)
00124     WORD idType;                        // Resource type (1 for icons)
00125     WORD idCount;                       // How many images?
00126     GRPCURSORICONDIRENTRY idEntries[1]; // The entries for each image
00127 } GRPCURSORICONDIR;
00128 #pragma pack(pop)
00129 
00130 typedef struct _THRDCARETINFO
00131 {
00132     HWND hWnd;
00133     HBITMAP Bitmap;
00134     POINT Pos;
00135     SIZE Size;
00136     BYTE Visible;
00137     BYTE Showing;
00138 } THRDCARETINFO, *PTHRDCARETINFO;
00139 
00140 #endif

Generated on Fri May 25 2012 04:36:41 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.