Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.6 KiB

4 years ago
  1. /*++
  2. Copyright (c) 1990-1995 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. #include "splcom.h"
  13. typedef struct _PRINTPROCESSORDATA {
  14. DWORD signature;
  15. DWORD cb;
  16. struct _PRINTPROCESSORDATA *pNext;
  17. DWORD fsStatus;
  18. HANDLE semPaused;
  19. DWORD uDatatype;
  20. HANDLE hPrinter;
  21. LPWSTR pPrinterName;
  22. LPWSTR pDocument;
  23. LPWSTR pOutputFile;
  24. LPWSTR pDatatype;
  25. LPWSTR pParameters;
  26. DWORD JobId;
  27. DWORD Copies; /** Number of copies to print **/
  28. DWORD TabSize;
  29. HDC hDC;
  30. #ifdef SPOOLKM
  31. DEVMODEW *pDevmode;
  32. #endif
  33. } PRINTPROCESSORDATA, *PPRINTPROCESSORDATA;
  34. #define PRINTPROCESSORDATA_SIGNATURE 0x5051 /* 'QP' is the signature value */
  35. /* Define flags for fsStatus field */
  36. #define PRINTPROCESSOR_ABORTED 0x0001
  37. #define PRINTPROCESSOR_CLOSED 0x0004
  38. #define PRINTPROCESSOR_PAUSED 0x0008
  39. #define PRINTPROCESSOR_RESERVED 0xFFF8
  40. /** Flags used for the GetKey routing **/
  41. #define VALUE_STRING 0x01
  42. #define VALUE_ULONG 0x02
  43. /** Buffer sizes we'll use **/
  44. #define READ_BUFFER_SIZE 4096
  45. #define BASE_PRINTER_BUFFER_SIZE 2048
  46. PPRINTPROCESSORDATA
  47. ValidateHandle(
  48. HANDLE hPrintProcessor
  49. );
  50. /** Data types we support **/
  51. #define PRINTPROCESSOR_TYPE_RAW 0
  52. #define PRINTPROCESSOR_TYPE_RAW_FF 1
  53. #define PRINTPROCESSOR_TYPE_RAW_FF_AUTO 2
  54. #ifdef SPOOLKM
  55. #define PRINTPROCESSOR_TYPE_EMF 3
  56. #else
  57. #define PRINTPROCESSOR_TYPE_JOURNAL 3
  58. #endif
  59. #define PRINTPROCESSOR_TYPE_TEXT 4