|
|
1.1 ! root 1: //-------------------------------------------------------------------------- ! 2: // ! 3: // Module Name: ENABLE.H ! 4: // ! 5: // Brief Description: This module contains defines and structures ! 6: // necessary for the PSCRIPT driver's Enable and ! 7: // Disable routines. ! 8: // ! 9: // Author: Kent Settle (kentse) ! 10: // Created: 17-Oct-1990 ! 11: // ! 12: // Copyright (c) 1990 - 1992 Microsoft Corporation ! 13: // ! 14: //-------------------------------------------------------------------------- ! 15: ! 16: #define START_HEAP_SIZE 20480L // initial heap size. ! 17: #define OUTPUT_BUFFER_SIZE 4096L // output buffer size. ! 18: ! 19: #define NUM_PURE_COLORS 8 // C, M, Y, K, W, R, G, B. ! 20: #define NUM_PURE_GRAYS 2 // Black and White. ! 21: ! 22: #define MIN_SCALE 1 ! 23: #define MAX_SCALE 1000 ! 24: #define MIN_COPIES 1 ! 25: #define MAX_COPIES 999 ! 26: ! 27: #define GDI_VERSION 0x310 ! 28: #define DRIVER_VERSION 0x0350 /* used by ExtDevMode() */ ! 29: ! 30: //!!! these should be done away with and replaced with valid values - kentse. ! 31: // some default GDIINFO values. ! 32: ! 33: #define GDIINFO_BITSPERPEL 24 ! 34: ! 35: // declarations of routines residing in ENABLE.C. ! 36: ! 37: BOOL FillMyDevData(PDEVDATA); ! 38: BOOL bFillhsurfPatterns(PDEVDATA, ULONG, PHSURF); ! 39: VOID vFillaulCaps(PDEVDATA, ULONG, ULONG *); ! 40: BOOL bFillMyDevInfo(PDEVDATA, ULONG, PDEVINFO, ULONG); ! 41: BOOL bValidatePDEV(PDEVDATA); ! 42: PNTPD GetPSPrinter(PDEVDATA); ! 43: VOID SetFormMetrics(PDEVDATA); ! 44: VOID AdjustForLandscape(PDEVDATA); ! 45: VOID AdjustFormToPrinter(PDEVDATA); ! 46: VOID FillInCURRENTFORM(PDEVDATA, PFORM_INFO_1); ! 47: VOID SetCurrentFormToDefault(PDEVDATA); ! 48: ! 49: // declarations of routines residing in OUTPUT.C. ! 50: ! 51: BOOL bPSFlush(PDEVDATA); ! 52: BOOL bPSWrite(PDEVDATA, PBYTE, ULONG); ! 53: VOID vHexOut(PDEVDATA, PBYTE, LONG); ! 54: ! 55: BOOL PrintString(PDEVDATA, PSZ); ! 56: BOOL PrintDecimal(PDEVDATA, DWORD, ...); ! 57: BOOL PrintPSFIX(PDEVDATA, DWORD, ...); ! 58: ! 59: // declarations of routines residing in HEADER.C. ! 60: ! 61: BOOL bSendPSProcSet(PDEVDATA, ULONG);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.