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.

141 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. ntfytab.h
  6. Abstract:
  7. Table definitions for ntfy*.h. There must not be any structure
  8. definitions here since this is included in winspl.idl. The midl
  9. compiler generates winspl.h which would include these definions, and
  10. some files include both ntfytab.h and winspl.h (causing duplicate
  11. definitions). This file should hold just #defines.
  12. Author:
  13. Albert Ting (AlbertT) 04-Oct-94
  14. Environment:
  15. User Mode -Win32
  16. Revision History:
  17. --*/
  18. #ifndef _NTFYTAB_H
  19. #define _NTFYTAB_H
  20. #define TABLE_NULL 0x0
  21. #define TABLE_DWORD 0x1
  22. #define TABLE_STRING 0x2
  23. #define TABLE_DEVMODE 0x3
  24. #define TABLE_TIME 0x4
  25. #define TABLE_SECURITYDESCRIPTOR 0x5
  26. #define TABLE_PRINTPROC 0x6
  27. #define TABLE_DRIVER 0x7
  28. #define TABLE_ZERO 0xf0
  29. #define TABLE_NULLSTRING 0xf1
  30. #define TABLE_SPECIAL 0xff
  31. #define TABLE_JOB_STATUS 0x100
  32. #define TABLE_JOB_POSITION 0x101
  33. #define TABLE_JOB_PRINTERNAME 0x102
  34. #define TABLE_JOB_PORT 0x103
  35. #define TABLE_PRINTER_STATUS 0x200
  36. #define TABLE_PRINTER_DRIVER 0x201
  37. #define TABLE_PRINTER_PORT 0x202
  38. #define TABLE_PRINTER_SERVERNAME 0x203
  39. //
  40. // Must match above #defines (act TABLE_* acts as an index
  41. // to the below array).
  42. //
  43. #define NOTIFY_DATATYPES \
  44. { \
  45. 0, \
  46. 0, \
  47. TABLE_ATTRIB_DATA_PTR, \
  48. TABLE_ATTRIB_DATA_PTR, \
  49. TABLE_ATTRIB_DATA_PTR, \
  50. TABLE_ATTRIB_DATA_PTR, \
  51. 0 \
  52. }
  53. #define TABLE_ATTRIB_DATA_PTR 0x2
  54. #define INVALID_NOTIFY_FIELD ((WORD)-1)
  55. #define INVALID_NOTIFY_TYPE ((WORD)-1)
  56. //
  57. // index = PRINTER_NOTIFY_TYPE
  58. // value = bytes from PRINTER_NOTIFY_INFO_DATA to actual data.
  59. // (Job has 4 bytes for JobId).
  60. //
  61. //#define NOTIFY_PRINTER_DATA_OFFSETS { 0, 4 }
  62. #define NOTIFY_TYPE_MAX 0x02
  63. #define PRINTER_NOTIFY_NEXT_INFO 0x01
  64. //
  65. // COMPACT = Data is a DWORD (TABLE_ATTRIB_DATA_PTR must not be set)
  66. // Router will overwrite and compact old data.
  67. // DISPLAY = This attribute is displayable in PrintUI
  68. //
  69. #define TABLE_ATTRIB_COMPACT 0x1
  70. #define TABLE_ATTRIB_DISPLAY 0x2
  71. //
  72. // The reply system can support different types of callbacks.
  73. // These types are defined here and are used for RPC marshalling.
  74. //
  75. #define REPLY_PRINTER_CHANGE 0x0
  76. #endif