2 * Implementation of some printer driver bits
4 * Copyright 1996 John Harvey
16 INT16 WINAPI
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
);
31 INT16 WINAPI
EndDoc16(HDC16 hdc
)
33 return Escape16(hdc
, ENDDOC
, 0, 0, 0);
38 DWORD WINAPI
DrvGetPrinterData(LPSTR lpPrinter
, LPSTR lpProfile
,
39 LPDWORD lpType
, LPBYTE lpPrinterData
,
40 int cbData
, LPDWORD lpNeeded
)
42 fprintf(stderr
,"In DrvGetPrinterData ");
43 if (HIWORD(lpPrinter
))
44 fprintf(stderr
,"printer %s ",lpPrinter
);
46 fprintf(stderr
,"printer %p ",lpPrinter
);
47 if (HIWORD(lpProfile
))
48 fprintf(stderr
,"profile %s ",lpProfile
);
50 fprintf(stderr
,"profile %p ",lpProfile
);
51 fprintf(stderr
,"lpType %p\n",lpType
);
57 DWORD WINAPI
DrvSetPrinterData(LPSTR lpPrinter
, LPSTR lpProfile
,
58 LPDWORD lpType
, LPBYTE lpPrinterData
,
61 fprintf(stderr
,"In DrvSetPrinterData ");
62 if (HIWORD(lpPrinter
))
63 fprintf(stderr
,"printer %s ",lpPrinter
);
65 fprintf(stderr
,"printer %p ",lpPrinter
);
66 if (HIWORD(lpProfile
))
67 fprintf(stderr
,"profile %s ",lpProfile
);
69 fprintf(stderr
,"profile %p ",lpProfile
);
70 fprintf(stderr
,"lpType %p\n",lpType
);
75 INT32 WINAPI
DeviceCapabilities32A(LPCSTR printer
,LPCSTR target
,WORD z
,
76 LPSTR a
,LPDEVMODE32A b
)
78 fprintf(stderr
,"DeviceCapabilitiesA(%s,%s,%d,%p,%p)\n",printer
,target
,z
,a
,b
);
82 LONG WINAPI
DocumentProperties32A(HWND32 hWnd
,HANDLE32 hPrinter
,
83 LPSTR pDeviceName
, LPDEVMODE32A pDevModeOutput
,
84 LPDEVMODE32A pDevModeInput
,DWORD fMode
)
86 fprintf(stderr
,"DocumentPropertiesA(%d,%d,%s,%p,%p,%d)\n",
87 hWnd
,hPrinter
,pDeviceName
,pDevModeOutput
,pDevModeInput
,fMode