forked from OS2World/APP-COMM-FleetStreet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
printsetup.h
50 lines (40 loc) · 1.7 KB
/
printsetup.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* PRINTSETUP.H */
MRESULT EXPENTRY PrintSetupProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
#pragma pack(4)
typedef struct
{
USHORT cb;
BOOL bDirty;
WINPOS DlgPos;
ULONG ulOutput; /* OUTPUT_* */
LONG lLeft;
LONG lRight;
LONG lTop;
LONG lBottom;
char pchHeaderFont[FACESIZE+5];
char pchTextFont[FACESIZE+5];
/* INPUT PARAMETERS: assign these before calling SetupPrinter() */
LONG lWorldCoordinates; /* PU_TWIPS or whatever */
HAB hab; /* application's anchor block */
/* PROFILED PARAMETERS: store these two items on app close.
Retrieve them on app open.
Note pDriverData->cb is length of DRIVDATA structure. */
CHAR szPreferredQueue[ 64 ]; /* name of user's preferred queue */
PDRIVDATA pDriverData; /* driver's data */
/* OUTPUT PARAMETERS: for use by SetupPrinter() and the application */
HDC hdcPrinterInfo; /* printer info DC */
HPS hpsPrinterInfo; /* printer info PS */
LONG lDCType; /* DC type suitable for DevOpenDC() param 2*/
PDEVOPENDATA pDevOpenData; /* suitable for DevOpenDC() parameter 5 */
DEVOPENSTRUC devopenstruc; /* pdevopendata points to this. */
LONG cQueues; /* count of queues in PRQINFO3 array */
PPRQINFO3 pQueueInfo; /* pointer to array of PRQINFO3 */
} PRINTSETUP, *PPRINTSETUP;
#pragma pack()
#define OUTPUT_AREA 0x01UL
#define OUTPUT_DATE 0x02UL
#define OUTPUT_ATTRIB 0x04UL
#define OUTPUT_PAGENUM 0x08UL
ULONG InitPrintSetup(PPRINTSETUP pPrintSetup, HAB hab);
ULONG TermPrintSetup(PPRINTSETUP pPrintSetup);
/* Ende PRINTSETUP.H */