Leaked source code of windows server 2003
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.

90 lines
3.4 KiB

  1. /*++
  2. Copyright (c) 1990-1994 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. data.c
  6. Abstract:
  7. Generates globals used for marshalling spooler data structures.
  8. Actual definitions in spl\inc.
  9. Author:
  10. Environment:
  11. User Mode -Win32
  12. Revision History:
  13. --*/
  14. #include <precomp.h>
  15. #define PRINTER_STRINGS
  16. #define JOB_STRINGS
  17. #define DRIVER_STRINGS
  18. #define ADDJOB_STRINGS
  19. #define FORM_STRINGS
  20. #define PORT_STRINGS
  21. #define PRINTPROCESSOR_STRINGS
  22. #define MONITOR_STRINGS
  23. #define DOCINFO_STRINGS
  24. #include <stddef.h>
  25. #include <data.h>
  26. DWORD IniDriverOffsets[]={offsetof(INIDRIVER, pName),
  27. offsetof(INIDRIVER, pDriverFile),
  28. offsetof(INIDRIVER, pConfigFile),
  29. offsetof(INIDRIVER, pDataFile),
  30. offsetof(INIDRIVER, pHelpFile),
  31. offsetof(INIDRIVER, pDependentFiles),
  32. offsetof(INIDRIVER, pMonitorName),
  33. offsetof(INIDRIVER, pDefaultDataType),
  34. offsetof(INIDRIVER, pszzPreviousNames),
  35. offsetof(INIDRIVER, pszMfgName),
  36. offsetof(INIDRIVER, pszOEMUrl),
  37. offsetof(INIDRIVER, pszHardwareID),
  38. offsetof(INIDRIVER, pszProvider),
  39. 0xFFFFFFFF};
  40. DWORD IniPrinterOffsets[]={offsetof(INIPRINTER, pName),
  41. offsetof(INIPRINTER, pShareName),
  42. offsetof(INIPRINTER, pDatatype),
  43. offsetof(INIPRINTER, pParameters),
  44. offsetof(INIPRINTER, pComment),
  45. offsetof(INIPRINTER, pDevMode),
  46. offsetof(INIPRINTER, pSepFile),
  47. offsetof(INIPRINTER, pLocation),
  48. offsetof(INIPRINTER, pSpoolDir),
  49. offsetof(INIPRINTER, ppIniPorts),
  50. offsetof(INIPRINTER, pszObjectGUID),
  51. offsetof(INIPRINTER, pszDN),
  52. offsetof(INIPRINTER, pszCN),
  53. 0xFFFFFFFF};
  54. DWORD IniSpoolerOffsets[]={offsetof(INISPOOLER, pMachineName),
  55. offsetof(INISPOOLER, pDir),
  56. offsetof(INISPOOLER, pDefaultSpoolDir),
  57. offsetof(INISPOOLER, pszRegistryMonitors),
  58. offsetof(INISPOOLER, pszRegistryEnvironments),
  59. offsetof(INISPOOLER, pszRegistryEventLog),
  60. offsetof(INISPOOLER, pszRegistryProviders),
  61. offsetof(INISPOOLER, pszEventLogMsgFile),
  62. offsetof(INISPOOLER, pszDriversShare),
  63. offsetof(INISPOOLER, pszRegistryForms),
  64. offsetof(INISPOOLER, pszClusterSID),
  65. offsetof(INISPOOLER, pszClusResDriveLetter),
  66. offsetof(INISPOOLER, pszClusResID),
  67. offsetof(INISPOOLER, pszFullMachineName),
  68. 0xFFFFFFFF};
  69. DWORD IniEnvironmentOffsets[] = {offsetof(INIENVIRONMENT, pDirectory),
  70. 0xFFFFFFFF};
  71. DWORD IniPrintProcOffsets[] = { offsetof(INIPRINTPROC, pDatatypes),
  72. 0xFFFFFFFF};