Release 970509
[wine] / misc / printdrv.c
1 /* 
2  * Implementation of some printer driver bits
3  * 
4  * Copyright 1996 John Harvey
5  */
6
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"
14
15
16 INT16 StartDoc16( HDC16 hdc, const DOCINFO16 *lpdoc )
17 {
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;
29 }
30
31 INT16
32 EndDoc16(HDC16 hdc)
33 {
34   return  Escape16(hdc, ENDDOC, 0, 0, 0);
35 }
36
37
38
39 DWORD
40 DrvGetPrinterData(LPSTR lpPrinter, LPSTR lpProfile, LPDWORD lpType,
41                   LPBYTE lpPrinterData, int cbData, LPDWORD lpNeeded)
42 {
43     fprintf(stderr,"In DrvGetPrinterData printer %s profile %s lpType %p \n",
44            lpPrinter, lpProfile, lpType);
45     return 0;
46 }
47
48
49
50 DWORD
51 DrvSetPrinterData(LPSTR lpPrinter, LPSTR lpProfile, LPDWORD lpType,
52                   LPBYTE lpPrinterData, DWORD dwSize)
53 {
54     fprintf(stderr,"In DrvSetPrinterData printer %s profile %s lpType %p \n",
55            lpPrinter, lpProfile, lpType);
56     return 0;
57 }
58
59
60