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.

137 lines
5.9 KiB

  1. /*++
  2. Copyright (c) 1990-1996 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. data.h
  6. Abstract:
  7. Common definitions for structure offsets for pointer based data.
  8. Author:
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. //DWORD PrinterInfoStressOffsetsA[]={offsetof(PRINTER_INFO_STRESSW, pPrinterName),
  14. // offsetof(PRINTER_INFO_STRESSW, pServerName),
  15. // 0xFFFFFFFF};
  16. DWORD PrinterInfo1OffsetsA[]={offsetof(PRINTER_INFO_1W, pDescription),
  17. offsetof(PRINTER_INFO_1W, pName),
  18. offsetof(PRINTER_INFO_1W, pComment),
  19. 0xFFFFFFFF};
  20. DWORD PrinterInfo2OffsetsA[]={offsetof(PRINTER_INFO_2W, pServerName),
  21. offsetof(PRINTER_INFO_2W, pPrinterName),
  22. offsetof(PRINTER_INFO_2W, pShareName),
  23. offsetof(PRINTER_INFO_2W, pPortName),
  24. offsetof(PRINTER_INFO_2W, pDriverName),
  25. offsetof(PRINTER_INFO_2W, pComment),
  26. offsetof(PRINTER_INFO_2W, pLocation),
  27. offsetof(PRINTER_INFO_2W, pDevMode),
  28. offsetof(PRINTER_INFO_2W, pSepFile),
  29. offsetof(PRINTER_INFO_2W, pPrintProcessor),
  30. offsetof(PRINTER_INFO_2W, pDatatype),
  31. offsetof(PRINTER_INFO_2W, pParameters),
  32. offsetof(PRINTER_INFO_2W, pSecurityDescriptor),
  33. 0xFFFFFFFF};
  34. DWORD PrinterInfo3OffsetsA[]={offsetof(PRINTER_INFO_3, pSecurityDescriptor),
  35. 0xFFFFFFFF};
  36. DWORD PrinterInfo4OffsetsA[]={offsetof(PRINTER_INFO_4W, pPrinterName),
  37. offsetof(PRINTER_INFO_4W, pServerName),
  38. 0xFFFFFFFF};
  39. DWORD PrinterInfo5OffsetsA[]={offsetof(PRINTER_INFO_5W, pPrinterName),
  40. offsetof(PRINTER_INFO_5W, pPortName),
  41. 0xFFFFFFFF};
  42. /*
  43. DWORD PrinterInfoStressStringsA[]={offsetof(PRINTER_INFO_STRESSW, pPrinterName),
  44. offsetof(PRINTER_INFO_STRESSW, pServerName),
  45. 0xFFFFFFFF};
  46. */
  47. DWORD PrinterInfo1StringsA[]={offsetof(PRINTER_INFO_1W, pDescription),
  48. offsetof(PRINTER_INFO_1W, pName),
  49. offsetof(PRINTER_INFO_1W, pComment),
  50. 0xFFFFFFFF};
  51. DWORD PrinterInfo2StringsA[]={offsetof(PRINTER_INFO_2W, pServerName),
  52. offsetof(PRINTER_INFO_2W, pPrinterName),
  53. offsetof(PRINTER_INFO_2W, pShareName),
  54. offsetof(PRINTER_INFO_2W, pPortName),
  55. offsetof(PRINTER_INFO_2W, pDriverName),
  56. offsetof(PRINTER_INFO_2W, pComment),
  57. offsetof(PRINTER_INFO_2W, pLocation),
  58. offsetof(PRINTER_INFO_2W, pSepFile),
  59. offsetof(PRINTER_INFO_2W, pPrintProcessor),
  60. offsetof(PRINTER_INFO_2W, pDatatype),
  61. offsetof(PRINTER_INFO_2W, pParameters),
  62. 0xFFFFFFFF};
  63. DWORD PrinterInfo3StringsA[]={0xFFFFFFFF};
  64. DWORD PrinterInfo4StringsA[]={offsetof(PRINTER_INFO_4W, pPrinterName),
  65. offsetof(PRINTER_INFO_4W, pServerName),
  66. 0xFFFFFFFF};
  67. DWORD PrinterInfo5StringsA[]={offsetof(PRINTER_INFO_5W, pPrinterName),
  68. offsetof(PRINTER_INFO_5W, pPortName),
  69. 0xFFFFFFFF};
  70. DWORD JobInfo1OffsetsA[]={offsetof(JOB_INFO_1W, pPrinterName),
  71. offsetof(JOB_INFO_1W, pMachineName),
  72. offsetof(JOB_INFO_1W, pUserName),
  73. offsetof(JOB_INFO_1W, pDocument),
  74. offsetof(JOB_INFO_1W, pDatatype),
  75. offsetof(JOB_INFO_1W, pStatus),
  76. 0xFFFFFFFF};
  77. DWORD JobInfo2OffsetsA[]={offsetof(JOB_INFO_2W, pPrinterName),
  78. offsetof(JOB_INFO_2W, pMachineName),
  79. offsetof(JOB_INFO_2W, pUserName),
  80. offsetof(JOB_INFO_2W, pDocument),
  81. offsetof(JOB_INFO_2W, pNotifyName),
  82. offsetof(JOB_INFO_2W, pDatatype),
  83. offsetof(JOB_INFO_2W, pPrintProcessor),
  84. offsetof(JOB_INFO_2W, pParameters),
  85. offsetof(JOB_INFO_2W, pDriverName),
  86. offsetof(JOB_INFO_2W, pDevMode),
  87. offsetof(JOB_INFO_2W, pStatus),
  88. offsetof(JOB_INFO_2W, pSecurityDescriptor),
  89. 0xFFFFFFFF};
  90. DWORD JobInfo3OffsetsA[]={0xFFFFFFFF};
  91. DWORD JobInfo1StringsA[]={offsetof(JOB_INFO_1W, pPrinterName),
  92. offsetof(JOB_INFO_1W, pMachineName),
  93. offsetof(JOB_INFO_1W, pUserName),
  94. offsetof(JOB_INFO_1W, pDocument),
  95. offsetof(JOB_INFO_1W, pDatatype),
  96. offsetof(JOB_INFO_1W, pStatus),
  97. 0xFFFFFFFF};
  98. DWORD JobInfo2StringsA[]={offsetof(JOB_INFO_2W, pPrinterName),
  99. offsetof(JOB_INFO_2W, pMachineName),
  100. offsetof(JOB_INFO_2W, pUserName),
  101. offsetof(JOB_INFO_2W, pDocument),
  102. offsetof(JOB_INFO_2W, pNotifyName),
  103. offsetof(JOB_INFO_2W, pDatatype),
  104. offsetof(JOB_INFO_2W, pPrintProcessor),
  105. offsetof(JOB_INFO_2W, pParameters),
  106. offsetof(JOB_INFO_2W, pDriverName),
  107. offsetof(JOB_INFO_2W, pStatus),
  108. 0xFFFFFFFF};
  109. DWORD JobInfo3StringsA[]={0xFFFFFFFF};