2 * Implementation of some printer driver bits
4 * Copyright 1996 John Harvey
16 INT16
StartDoc16( HDC16 hdc
, const DOCINFO16
*lpdoc
)
19 printf("In startdoc16(%p)\n", lpdoc
);
20 printf("In StartDoc16 %d 0x%lx:0x%p 0x%lx:0x%p\n",lpdoc
->cbSize
,
21 lpdoc
->lpszDocName
,PTR_SEG_TO_LIN(lpdoc
->lpszDocName
),
22 lpdoc
->lpszOutput
,PTR_SEG_TO_LIN(lpdoc
->lpszOutput
));
23 printf("In StartDoc16 %d %s %s\n",lpdoc
->cbSize
,
24 (LPSTR
)PTR_SEG_TO_LIN(lpdoc
->lpszDocName
),
25 (LPSTR
)PTR_SEG_TO_LIN(lpdoc
->lpszOutput
));
26 retVal
= Escape16(hdc
, STARTDOC
, sizeof(DOCINFO16
), lpdoc
->lpszDocName
, 0);
27 printf("Escape16 returned %d\n",retVal
);
34 return Escape16(hdc
, ENDDOC
, 0, 0, 0);
40 DrvGetPrinterData(LPSTR lpPrinter
, LPSTR lpProfile
, LPDWORD lpType
,
41 LPBYTE lpPrinterData
, int cbData
, LPDWORD lpNeeded
)
43 fprintf(stderr
,"In DrvGetPrinterData ");
44 if (HIWORD(lpPrinter
))
45 fprintf(stderr
,"printer %s ",lpPrinter
);
47 fprintf(stderr
,"printer %p ",lpPrinter
);
48 if (HIWORD(lpProfile
))
49 fprintf(stderr
,"profile %s ",lpProfile
);
51 fprintf(stderr
,"profile %p ",lpProfile
);
52 fprintf(stderr
,"lpType %p\n",lpType
);
59 DrvSetPrinterData(LPSTR lpPrinter
, LPSTR lpProfile
, LPDWORD lpType
,
60 LPBYTE lpPrinterData
, DWORD dwSize
)
62 fprintf(stderr
,"In DrvSetPrinterData ");
63 if (HIWORD(lpPrinter
))
64 fprintf(stderr
,"printer %s ",lpPrinter
);
66 fprintf(stderr
,"printer %p ",lpPrinter
);
67 if (HIWORD(lpProfile
))
68 fprintf(stderr
,"profile %s ",lpProfile
);
70 fprintf(stderr
,"profile %p ",lpProfile
);
71 fprintf(stderr
,"lpType %p\n",lpType
);