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.

102 lines
2.4 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1994 - 1995
  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_DRIVER 0x200
  36. #define TABLE_PRINTER_PORT 0x201
  37. #define TABLE_PRINTER_SERVERNAME 0x202
  38. //
  39. // Must match above #defines (act TABLE_* acts as an index
  40. // to the below array).
  41. //
  42. #define NOTIFY_DATATYPES \
  43. { \
  44. 0, \
  45. 0, \
  46. TABLE_ATTRIB_DATA_PTR, \
  47. TABLE_ATTRIB_DATA_PTR, \
  48. TABLE_ATTRIB_DATA_PTR, \
  49. TABLE_ATTRIB_DATA_PTR, \
  50. 0 \
  51. }
  52. #define TABLE_ATTRIB_DATA_PTR 0x2
  53. #define kInvalidNotifyField ((WORD)-1)
  54. #define kInvalidNotifyType ((WORD)-1)
  55. //
  56. // index = PRINTER_NOTIFY_TYPE
  57. // value = bytes from PRINTER_NOTIFY_INFO_DATA to actual data.
  58. // (Job has 4 bytes for JobId).
  59. //
  60. //#define NOTIFY_PRINTER_DATA_OFFSETS { 0, 4 }
  61. #define NOTIFY_TYPE_MAX 0x02
  62. #define PRINTER_NOTIFY_NEXT_INFO 0x01
  63. //
  64. // COMPACT = Data is a DWORD (TABLE_ATTRIB_DATA_PTR must not be set)
  65. // Router will overwrite and compact old data.
  66. // DISPLAY = This attribute is displayable in PrintUI
  67. //
  68. #define TABLE_ATTRIB_COMPACT 0x1
  69. #define TABLE_ATTRIB_DISPLAY 0x2
  70. //
  71. // The reply system can support different types of callbacks.
  72. // These types are defined here and are used for RPC marshalling.
  73. //
  74. #define REPLY_PRINTER_CHANGE 0x0
  75. #endif