WINPRINT.H
上传用户:yuandong
上传日期:2022-08-08
资源大小:954k
文件大小:1k
源码类别:

Delphi控件源码

开发平台:

C++ Builder

  1. /*++
  2. Copyright (c) 1990-1996  Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5.    winprint.h
  6. Abstract:
  7. Author:
  8. Environment:
  9.     User Mode -Win32
  10. Revision History:
  11. --*/
  12. typedef struct _PRINTPROCESSORDATA {
  13.     DWORD   signature;
  14.     DWORD   cb;
  15.     struct _PRINTPROCESSORDATA *pNext;
  16.     DWORD   fsStatus;
  17.     HANDLE  semPaused;
  18.     DWORD   uDatatype;
  19.     HANDLE  hPrinter;
  20.     LPWSTR  pPrinterName;
  21.     LPWSTR  pDocument;
  22.     LPWSTR  pOutputFile;
  23.     LPWSTR  pDatatype;
  24.     LPWSTR  pParameters;
  25.     DWORD   JobId;
  26.     DWORD   Copies;         /** Number of copies to print **/
  27.     DWORD   TabSize;
  28.     HDC     hDC;
  29.     DEVMODEW *pDevmode;
  30. } PRINTPROCESSORDATA, *PPRINTPROCESSORDATA;
  31. #define PRINTPROCESSORDATA_SIGNATURE    0x5051  /* 'QP' is the signature value */
  32. /* Define flags for fsStatus field */
  33. #define PRINTPROCESSOR_ABORTED      0x0001
  34. #define PRINTPROCESSOR_CLOSED       0x0004
  35. #define PRINTPROCESSOR_PAUSED       0x0008
  36. #define PRINTPROCESSOR_RESERVED     0xFFF8
  37. /** Flags used for the GetKey routing **/
  38. #define VALUE_STRING    0x01
  39. #define VALUE_ULONG     0x02
  40. /** Buffer sizes we'll use **/
  41. #define READ_BUFFER_SIZE            4096
  42. #define BASE_PRINTER_BUFFER_SIZE    2048
  43. PPRINTPROCESSORDATA
  44. ValidateHandle(
  45.     HANDLE  hPrintProcessor
  46. );
  47. /** Data types we support **/
  48. #define PRINTPROCESSOR_TYPE_EMF         3