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.

69 lines
2.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows NT5.0
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: O E M U P G R D . H
  7. //
  8. // Contents: Functions for OEM upgrade
  9. //
  10. // Notes:
  11. //
  12. // Author: kumarp 13-November-97
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "ncmisc.h" // for PRODUCT_FLAVOR
  17. #include "ncstring.h"
  18. #include "oemupgex.h"
  19. class COemInfo
  20. {
  21. public:
  22. COemInfo();
  23. ~COemInfo();
  24. HMODULE m_hOemDll;
  25. tstring m_strOemDir;
  26. tstring m_strOemDll;
  27. DWORD m_dwError;
  28. PostUpgradeInitializePrototype m_pfnPostUpgradeInitialize;
  29. DoPostUpgradeProcessingPrototype m_pfnDoPostUpgradeProcessing;
  30. };
  31. HRESULT HrProcessOemComponent(IN HWND hParentWindow,
  32. IN PCWSTR szOemDir,
  33. IN PCWSTR szOemDll,
  34. IN NetUpgradeInfo* pNetUpgradeInfo,
  35. IN HKEY hkeyParams,
  36. IN PCWSTR szPreNT5Instance,
  37. IN PCWSTR szNT5InfId,
  38. IN HINF hinfAnswerFile,
  39. IN PCWSTR szSectionName);
  40. PRODUCTTYPE MapProductFlagToProductType(IN DWORD dwUpgradeFromProductFlag);
  41. PRODUCTTYPE MapProductFlavorToProductType(IN PRODUCT_FLAVOR pf);
  42. ProductInfo GetCurrentProductInfo();
  43. HRESULT HrProcessInfToRunBeforeInstall(IN HWND hwndParent,
  44. IN PCWSTR szAnswerFileName);
  45. //----------------------------------------------------------------------------
  46. typedef enum
  47. {
  48. I2R_BeforeInstall,
  49. I2R_AfterInstall
  50. } EInfToRunValueType;
  51. HRESULT HrAfGetInfToRunValue(IN HINF hinfAnswerFile,
  52. IN PCWSTR szAnswerFileName,
  53. IN PCWSTR szParamsSection,
  54. IN EInfToRunValueType itrType,
  55. OUT tstring* pstrInfToRun,
  56. OUT tstring* pstrSectionToRun,
  57. OUT tstring* pstrInfToRunType);
  58. HRESULT HrNetSetupCopyOemInfs(IN PCWSTR szAnswerFileName);