1.
BOOL PageSetupDlg( LPPAGESETUPDLG lppsd pointer to a structure );
2. PAGESETUPDLG
3. DEVMODE
4. typedef struct _devicemode { // dvmd
BCHAR dmDeviceName[CCHDEVICENAME];
WORD dmSpecVersion;
WORD dmDriverVersion;
WORD dmSize;
WORD dmDriverExtra;
DWORD dmFields;
short dmOrientation;
short dmPaperSize;
short dmPaperLength;
short dmPaperWidth;
short dmScale;
short dmCopies;
short dmDefaultSource;
short dmPrintQuality;
short dmColor;
short dmDuplex;
short dmYResolution;
short dmTTOption;
short dmCollate;
BCHAR dmFormName[CCHFORMNAME];
WORD dmLogPixels;
DWORD dmBitsPerPel;
DWORD dmPelsWidth;
DWORD dmPelsHeight;
DWORD dmDisplayFlags;
DWORD dmDisplayFrequency;
#if(WINVER >= 0x0400)
DWORD dmICMMethod;
// Windows 95 only
DWORD dmICMIntent;
// Windows 95 only
DWORD dmMediaType;
// Windows 95 only
DWORD dmDitherType;
// Windows 95 only
DWORD dmReserved1;
// Windows 95 only
DWORD dmReserved2;
// Windows 95 only
#endif /* WINVER >= 0x0400 */
} DEVMODE;