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.

91 lines
4.8 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. Data.c
  6. Abstract:
  7. Driver Setup data
  8. Author:
  9. Muhunthan Sivapragasam (MuhuntS) 28-Mar-1997
  10. Revision History:
  11. --*/
  12. #include "precomp.h"
  13. #define offsetof(type, identifier) (ULONG_PTR)(&(((type)0)->identifier))
  14. ULONG_PTR LocalDataOffsets[]={offsetof(PPSETUP_LOCAL_DATA, DrvInfo.pszInfName),
  15. offsetof(PPSETUP_LOCAL_DATA, DrvInfo.pszModelName),
  16. offsetof(PPSETUP_LOCAL_DATA, DrvInfo.pszDriverSection),
  17. offsetof(PPSETUP_LOCAL_DATA, DrvInfo.pszHardwareID),
  18. offsetof(PPSETUP_LOCAL_DATA, DrvInfo.pszManufacturer),
  19. offsetof(PPSETUP_LOCAL_DATA, DrvInfo.pszOEMUrl),
  20. offsetof(PPSETUP_LOCAL_DATA, DrvInfo.pszProvider),
  21. offsetof(PPSETUP_LOCAL_DATA, DrvInfo.pszzPreviousNames),
  22. (ULONG_PTR)-1};
  23. ULONG_PTR InfInfoOffsets[]={offsetof(PPARSEINF_INFO, pszInstallSection),
  24. offsetof(PPARSEINF_INFO, pszzICMFiles),
  25. offsetof(PPARSEINF_INFO, pszPrintProc),
  26. offsetof(PPARSEINF_INFO, pszVendorSetup),
  27. offsetof(PPARSEINF_INFO, DriverInfo6.pName),
  28. offsetof(PPARSEINF_INFO, DriverInfo6.pDriverPath),
  29. offsetof(PPARSEINF_INFO, DriverInfo6.pConfigFile),
  30. offsetof(PPARSEINF_INFO, DriverInfo6.pDataFile),
  31. offsetof(PPARSEINF_INFO, DriverInfo6.pHelpFile),
  32. offsetof(PPARSEINF_INFO, DriverInfo6.pDependentFiles),
  33. offsetof(PPARSEINF_INFO, DriverInfo6.pMonitorName),
  34. offsetof(PPARSEINF_INFO, DriverInfo6.pDefaultDataType),
  35. (ULONG_PTR)-1};
  36. ULONG_PTR PnPInfoOffsets[]={offsetof(PPNP_INFO, pszPortName),
  37. offsetof(PPNP_INFO, pszDeviceInstanceId),
  38. (ULONG_PTR)-1};
  39. #if DBG
  40. //
  41. // The following are to catch any inconsistency in splsetup.h
  42. // Which can break the printui/ntprint interface
  43. //
  44. pfPSetupCreatePrinterDeviceInfoList _pfn1 = PSetupCreatePrinterDeviceInfoList;
  45. pfPSetupDestroyPrinterDeviceInfoList _pfn2 = PSetupDestroyPrinterDeviceInfoList;
  46. pfPSetupSelectDriver _pfn3 = PSetupSelectDriver;
  47. pfPSetupCreateDrvSetupPage _pfn4 = PSetupCreateDrvSetupPage;
  48. pfPSetupGetSelectedDriverInfo _pfn5 = PSetupGetSelectedDriverInfo;
  49. pfPSetupDestroySelectedDriverInfo _pfn6 = PSetupDestroySelectedDriverInfo;
  50. pfPSetupInstallPrinterDriver _pfn7 = PSetupInstallPrinterDriver;
  51. pfPSetupIsDriverInstalled _pfn8 = PSetupIsDriverInstalled;
  52. pfPSetupIsTheDriverFoundInInfInstalled _pfn9 = PSetupIsTheDriverFoundInInfInstalled;
  53. pfPSetupThisPlatform _pfn11 = PSetupThisPlatform;
  54. pfPSetupGetPathToSearch _pfn12 = PSetupGetPathToSearch;
  55. pfPSetupDriverInfoFromName _pfn13 = PSetupDriverInfoFromName;
  56. pfPSetupPreSelectDriver _pfn14 = PSetupPreSelectDriver;
  57. pfPSetupCreateMonitorInfo _pfn15 = PSetupCreateMonitorInfo;
  58. pfPSetupDestroyMonitorInfo _pfn16 = PSetupDestroyMonitorInfo;
  59. pfPSetupEnumMonitor _pfn17 = PSetupEnumMonitor;
  60. pfPSetupInstallMonitor _pfn18 = PSetupInstallMonitor;
  61. pfPSetupProcessPrinterAdded _pfn20 = PSetupProcessPrinterAdded;
  62. pfPSetupBuildDriversFromPath _pfn21 = PSetupBuildDriversFromPath;
  63. pfPSetupSetSelectDevTitleAndInstructions _pfn22 = PSetupSetSelectDevTitleAndInstructions;
  64. pfPSetupInstallPrinterDriverFromTheWeb _pfn23 = PSetupInstallPrinterDriverFromTheWeb;
  65. pfPSetupGetLocalDataField _pfn25 = PSetupGetLocalDataField;
  66. pfPSetupFreeDrvField _pfn26 = PSetupFreeDrvField;
  67. pfPSetupIsCompatibleDriver _pfn27 = PSetupIsCompatibleDriver;
  68. pfPSetupAssociateICMProfiles _pfn28 = PSetupAssociateICMProfiles;
  69. pfPSetupInstallICMProfiles _pfn29 = PSetupInstallICMProfiles;
  70. pfPSetupFreeMem _pfn30 = PSetupFreeMem;
  71. pfPSetupFindMappedDriver _pfn31 = PSetupFindMappedDriver;
  72. pfPSetupInstallInboxDriverSilently _pfn32 = PSetupInstallInboxDriverSilently;
  73. #endif