[PSDK] Fix PRINTDLG structure definition
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 7 Jan 2019 01:21:10 +0000 (02:21 +0100)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 4 Mar 2019 20:58:42 +0000 (21:58 +0100)
sdk/include/psdk/commdlg.h

index 4680cca..f69be04 100644 (file)
@@ -464,8 +464,8 @@ typedef struct tagPSDW {
 typedef struct tagPDA {
        DWORD lStructSize;
        HWND hwndOwner;
-       HANDLE hDevMode;
-       HANDLE hDevNames;
+       HGLOBAL hDevMode;
+       HGLOBAL hDevNames;
        HDC hDC;
        DWORD Flags;
        WORD nFromPage;
@@ -474,19 +474,19 @@ typedef struct tagPDA {
        WORD nMaxPage;
        WORD nCopies;
        HINSTANCE hInstance;
-       DWORD lCustData;
+       LPARAM lCustData;
        LPPRINTHOOKPROC lpfnPrintHook;
        LPSETUPHOOKPROC lpfnSetupHook;
        LPCSTR lpPrintTemplateName;
        LPCSTR lpSetupTemplateName;
-       HANDLE hPrintTemplate;
-       HANDLE hSetupTemplate;
-} PRINTDLGA,*LPPRINTDLGA;
+       HGLOBAL hPrintTemplate;
+       HGLOBAL hSetupTemplate;
+} PRINTDLGA, *LPPRINTDLGA;
 typedef struct tagPDW {
        DWORD lStructSize;
        HWND hwndOwner;
-       HANDLE hDevMode;
-       HANDLE hDevNames;
+       HGLOBAL hDevMode;
+       HGLOBAL hDevNames;
        HDC hDC;
        DWORD Flags;
        WORD nFromPage;
@@ -495,14 +495,14 @@ typedef struct tagPDW {
        WORD nMaxPage;
        WORD nCopies;
        HINSTANCE hInstance;
-       DWORD lCustData;
+       LPARAM lCustData;
        LPPRINTHOOKPROC lpfnPrintHook;
        LPSETUPHOOKPROC lpfnSetupHook;
        LPCWSTR lpPrintTemplateName;
        LPCWSTR lpSetupTemplateName;
-       HANDLE hPrintTemplate;
-       HANDLE hSetupTemplate;
-} PRINTDLGW,*LPPRINTDLGW;
+       HGLOBAL hPrintTemplate;
+       HGLOBAL hSetupTemplate;
+} PRINTDLGW, *LPPRINTDLGW;
 #if (WINVER >= 0x0500) && !defined (__OBJC__)
 #include <prsht.h>   /* for HPROPSHEETPAGE  */
 typedef struct tagPRINTPAGERANGE {