--- mstools/h/drivinit.h 2018/08/09 18:20:26 1.1.1.2 +++ mstools/h/drivinit.h 2018/08/09 18:21:03 1.1.1.3 @@ -1,3 +1,10 @@ +#ifndef _DRIVINIT_INCLUDED_ +#define _DRIVINIT_INCLUDED_ + +#ifdef __cplusplus +extern "C" { +#endif + /* * drivinit.h * @@ -26,8 +33,10 @@ #define DM_PRINTQUALITY 0x0000400L #define DM_COLOR 0x0000800L #define DM_DUPLEX 0x0001000L -#define DM_COLLATE 0x0002000L -#define DM_FORMNAME 0x0004000L +#define DM_YRESOLUTION 0x0002000L +#define DM_TTOPTION 0x0004000L +#define DM_COLLATE 0x0008000L +#define DM_FORMNAME 0x0010000L /* orientation selections */ #define DMORIENT_PORTRAIT 1 @@ -115,6 +124,11 @@ #define DMDUP_VERTICAL 2 #define DMDUP_HORIZONTAL 3 +/* TrueType options */ +#define DMTT_BITMAP 1 /* print TT fonts as graphics */ +#define DMTT_DOWNLOAD 2 /* download TT fonts as soft fonts */ +#define DMTT_SUBDEV 3 /* substitute device fonts for TT fonts */ + /* Collation selections */ #define DMCOLLATE_FALSE 0 #define DMCOLLATE_TRUE 1 @@ -137,6 +151,8 @@ typedef struct _devicemode { short dmPrintQuality; short dmColor; short dmDuplex; + short dmYResolution; + short dmTTOption; short dmCollate; char dmFormName[CCHFORMNAME]; } DEVMODE; @@ -198,4 +214,11 @@ typedef DWORD FAR PASCAL FNDEVCAPS(LPSTR typedef FNDEVCAPS FAR * LPFNDEVCAPS; -HDC FAR PASCAL ResetDC(HDC, LPDEVMODE); +HDC FAR PASCAL ResetDC(HDC, CONST DEVMODE *); + +#ifdef __cplusplus +} +#endif + + +#endif // _DRIVINIT_INCLUDED_