Release 970629
[wine/wine-kai.git] / misc / printdrv.c
blobdf0bb96334c305bb2a9ca5742fec9fd7e878fdda
1 /*
2 * Implementation of some printer driver bits
3 *
4 * Copyright 1996 John Harvey
5 */
7 #include <stdlib.h>
8 #include <stdio.h>
9 #include <string.h>
10 #include <ctype.h>
11 #include "windows.h"
12 #include "win.h"
13 #include "winerror.h"
16 INT16 StartDoc16( HDC16 hdc, const DOCINFO16 *lpdoc )
18 INT16 retVal;
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);
28 return retVal;
31 INT16
32 EndDoc16(HDC16 hdc)
34 return Escape16(hdc, ENDDOC, 0, 0, 0);
39 DWORD
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);
46 else
47 fprintf(stderr,"printer %p ",lpPrinter);
48 if (HIWORD(lpProfile))
49 fprintf(stderr,"profile %s ",lpProfile);
50 else
51 fprintf(stderr,"profile %p ",lpProfile);
52 fprintf(stderr,"lpType %p\n",lpType);
53 return 0;
58 DWORD
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);
65 else
66 fprintf(stderr,"printer %p ",lpPrinter);
67 if (HIWORD(lpProfile))
68 fprintf(stderr,"profile %s ",lpProfile);
69 else
70 fprintf(stderr,"profile %p ",lpProfile);
71 fprintf(stderr,"lpType %p\n",lpType);
72 return 0;