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.

83 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 2002 Microsoft Corporation
  3. Module Name :
  4. complus.cxx
  5. Abstract:
  6. Classes that are used to activate the COM+ and
  7. DTC components
  8. Author:
  9. Christopher Achille (cachille)
  10. Project:
  11. Internet Services Setup
  12. Revision History:
  13. April 2002: Created
  14. --*/
  15. #include "compinst.hxx"
  16. #define STRING_COMPLUS_SETUPDLL _T("comsetup.dll")
  17. #define STRING_DTC_SETUPDLL _T("msdtcstp.dll")
  18. #define STRING_SETUPFILES_LOCATION _T("setup")
  19. #define STRING_COM_ISINSTALLEDFUNCTION "ComPlusGetWebApplicationServerRole"
  20. #define STRING_COM_INSTALLFUNCTION "ComPlusSetWebApplicationServerRole"
  21. #define STRING_DTC_ISINSTALLEDFUNCTION "DtcGetWebApplicationServerRole"
  22. #define STRING_DTC_INSTALLFUNCTION "DtcSetWebApplicationServerRole"
  23. typedef HRESULT (__stdcall *pComDtc_Set) (BOOL);
  24. typedef HRESULT (__stdcall *pComDtc_Get) (PSETUP_INIT_COMPONENT, BOOL*);
  25. class CCOMPlusInstallComponent : public CInstallComponent
  26. {
  27. private:
  28. HMODULE m_hComSetupDll;
  29. BOOL InitializeComSetupDll();
  30. BOOL InstallComponent( BOOL bInstall );
  31. public:
  32. CCOMPlusInstallComponent();
  33. ~CCOMPlusInstallComponent();
  34. BOOL Install();
  35. BOOL PostUnInstall();
  36. BOOL IsInstalled( LPBOOL pbIsInstalled );
  37. LPTSTR GetName();
  38. BOOL GetFriendlyName( TSTR *pstrFriendlyName );
  39. BOOL GetSmallIcon( HBITMAP *phIcon );
  40. };
  41. class CDTCInstallComponent : public CInstallComponent
  42. {
  43. private:
  44. HMODULE m_hDtcSetupDll;
  45. BOOL InitializeDtcSetupDll();
  46. BOOL InstallComponent( BOOL bInstall );
  47. public:
  48. CDTCInstallComponent();
  49. ~CDTCInstallComponent();
  50. BOOL Install();
  51. BOOL PostUnInstall();
  52. BOOL IsInstalled( LPBOOL pbIsInstalled );
  53. LPTSTR GetName();
  54. BOOL GetFriendlyName( TSTR *pstrFriendlyName );
  55. BOOL GetSmallIcon( HBITMAP *phIcon );
  56. };