Source code of Windows XP (NT5)
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.

97 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1990-1998 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. winprint.h
  6. // @@BEGIN_DDKSPLIT
  7. Abstract:
  8. Author:
  9. Environment:
  10. User Mode -Win32
  11. Revision History:
  12. // @@END_DDKSPLIT
  13. --*/
  14. // for driver related defines and typedefs
  15. #include <winddiui.h>
  16. typedef struct _PRINTPROCESSORDATA {
  17. DWORD signature;
  18. DWORD cb;
  19. struct _PRINTPROCESSORDATA *pNext;
  20. DWORD fsStatus;
  21. HANDLE semPaused;
  22. DWORD uDatatype;
  23. HANDLE hPrinter;
  24. LPWSTR pPrinterName;
  25. LPWSTR pDocument;
  26. LPWSTR pOutputFile;
  27. LPWSTR pDatatype;
  28. LPWSTR pParameters;
  29. DWORD JobId;
  30. DWORD Copies; /** Number of copies to print **/
  31. DWORD TabSize;
  32. HDC hDC;
  33. DEVMODEW *pDevmode;
  34. LPWSTR pPrinterNameFromOpenData;
  35. } PRINTPROCESSORDATA, *PPRINTPROCESSORDATA;
  36. #define PRINTPROCESSORDATA_SIGNATURE 0x5051 /* 'QP' is the signature value */
  37. /* Define flags for fsStatus field */
  38. #define PRINTPROCESSOR_ABORTED 0x0001
  39. #define PRINTPROCESSOR_CLOSED 0x0004
  40. #define PRINTPROCESSOR_PAUSED 0x0008
  41. #define PRINTPROCESSOR_RESERVED 0xFFF8
  42. /** Flags used for the GetKey routing **/
  43. #define VALUE_STRING 0x01
  44. #define VALUE_ULONG 0x02
  45. /** Buffer sizes we'll use **/
  46. #define READ_BUFFER_SIZE 0x10000
  47. #define BASE_PRINTER_BUFFER_SIZE 2048
  48. PPRINTPROCESSORDATA
  49. ValidateHandle(
  50. HANDLE hPrintProcessor
  51. );
  52. /** Data types we support **/
  53. // @@BEGIN_DDKSPLIT
  54. #define PRINTPROCESSOR_TYPE_RAW 0
  55. #define PRINTPROCESSOR_TYPE_RAW_FF 1
  56. #define PRINTPROCESSOR_TYPE_RAW_FF_AUTO 2
  57. #define PRINTPROCESSOR_TYPE_EMF_40 3
  58. #define PRINTPROCESSOR_TYPE_EMF_50_1 4
  59. #define PRINTPROCESSOR_TYPE_EMF_50_2 5
  60. #define PRINTPROCESSOR_TYPE_EMF_50_3 6
  61. #define PRINTPROCESSOR_TYPE_TEXT 7
  62. /** Data types we support for the DDK **/
  63. #if 0
  64. // @@END_DDKSPLIT
  65. #define PRINTPROCESSOR_TYPE_RAW 0
  66. #define PRINTPROCESSOR_TYPE_EMF_50_1 1
  67. #define PRINTPROCESSOR_TYPE_EMF_50_2 2
  68. #define PRINTPROCESSOR_TYPE_EMF_50_3 3
  69. #define PRINTPROCESSOR_TYPE_TEXT 4
  70. // @@BEGIN_DDKSPLIT
  71. #endif
  72. // @@END_DDKSPLIT