Sync with trunk r62754.
[reactos.git] / include / psdk / wingdi.h
index 3f01224..762d3f9 100644 (file)
@@ -1188,9 +1188,23 @@ extern "C" {
 #define DMTT_DOWNLOAD_OUTLINE  4
 #define DMCOLLATE_FALSE        0
 #define DMCOLLATE_TRUE 1
-#define DM_SPECVERSION 800
-#define DM_GRAYSCALE   1
-#define DM_INTERLACED  2
+
+
+#define DMDO_DEFAULT    0
+#define DMDO_90         1
+#define DMDO_180        2
+#define DMDO_270        3
+
+#define DMDFO_DEFAULT   0
+#define DMDFO_STRETCH   1
+#define DMDFO_CENTER    2
+
+
+#define DM_GRAYSCALE            0x00000001
+#define DM_INTERLACED           0x00000002
+#define DMDISPLAYFLAGS_TEXTMODE 0x00000004
+
+
 #define DM_UPDATE      1
 #define DM_COPY        2
 #define DM_PROMPT      4
@@ -1200,6 +1214,15 @@ extern "C" {
 #define DM_OUT_BUFFER  DM_COPY
 #define DM_OUT_DEFAULT DM_UPDATE
 
+
+#if (WINVER >= 0x0500) || (_WIN32_WINNT >= _WIN32_WINNT_NT4)
+#define DM_SPECVERSION 0x0401
+#elif (WINVER >= 0x0400)
+#define DM_SPECVERSION 0x0400
+#else
+#define DM_SPECVERSION 0x0320
+#endif
+
 #define DM_ORIENTATION        0x00000001
 #define DM_PAPERSIZE          0x00000002
 #define DM_PAPERLENGTH        0x00000004
@@ -1233,11 +1256,6 @@ extern "C" {
 #define DM_DISPLAYFIXEDOUTPUT 0x20000000
 #endif
 
-#define DMDO_DEFAULT            0
-#define DMDO_90                 1
-#define DMDO_180                2
-#define DMDO_270                3
-
 #define DMICMMETHOD_NONE       1
 #define DMICMMETHOD_SYSTEM     2
 #define DMICMMETHOD_DRIVER     3
@@ -1329,6 +1347,7 @@ extern "C" {
 #define LAYOUT_VBH 4 // Vertical before horizontal
 #define LAYOUT_ORIENTATIONMASK (LAYOUT_RTL | LAYOUT_BTT | LAYOUT_VBH)
 #define LAYOUT_BITMAPORIENTATIONPRESERVED 8
+#define CAPTUREBLT 0x40000000
 #define NOMIRRORBITMAP 0x80000000
 #if (WINVER > 0x400)
 #define CS_ENABLE           0x00000001
@@ -1529,22 +1548,13 @@ typedef struct _devicemodeA {
       short dmCopies;
       short dmDefaultSource;
       short dmPrintQuality;
-#ifdef __WINESRC__
     } DUMMYSTRUCTNAME1;
-#else
-    } DUMMYSTRUCTNAME;
-#endif
     struct {
       POINTL dmPosition;
       DWORD  dmDisplayOrientation;
       DWORD  dmDisplayFixedOutput;
     } DUMMYSTRUCTNAME2;
-#ifdef __WINESRC__
   } DUMMYUNIONNAME1;
-#else
-  } DUMMYUNIONNAME;
-#endif
-
   short  dmColor;
   short  dmDuplex;
   short  dmYResolution;
@@ -1590,22 +1600,13 @@ typedef struct _devicemodeW {
       short dmCopies;
       short dmDefaultSource;
       short dmPrintQuality;
-#ifdef __WINESRC__
     } DUMMYSTRUCTNAME1;
-#else
-    } DUMMYSTRUCTNAME;
-#endif
     struct {
       POINTL dmPosition;
       DWORD  dmDisplayOrientation;
       DWORD  dmDisplayFixedOutput;
     } DUMMYSTRUCTNAME2;
-#ifdef __WINESRC__
   } DUMMYUNIONNAME1;
-#else
-  } DUMMYUNIONNAME;
-#endif
-
   short  dmColor;
   short  dmDuplex;
   short  dmYResolution;
@@ -4036,6 +4037,20 @@ BOOL WINAPI wglUseFontBitmapsW(HDC,DWORD,DWORD,DWORD);
 BOOL WINAPI wglUseFontOutlinesA(HDC,DWORD,DWORD,DWORD,FLOAT,FLOAT,int,LPGLYPHMETRICSFLOAT);
 BOOL WINAPI wglUseFontOutlinesW(HDC,DWORD,DWORD,DWORD,FLOAT,FLOAT,int,LPGLYPHMETRICSFLOAT);
 
+#if (WINVER >= 0x0500)
+
+typedef struct _WGLSWAP
+{
+    HDC hdc;
+    UINT uiFlags;
+} WGLSWAP, *PWGLSWAP, FAR *LPWGLSWAP;
+
+#define WGL_SWAPMULTIPLE_MAX 16
+
+DWORD WINAPI wglSwapMultipleBuffers(UINT, CONST WGLSWAP *);
+
+#endif // (WINVER >= 0x0500)
+
 #if (WINVER>= 0x0500)
 
 BOOL WINAPI AlphaBlend(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BLENDFUNCTION);