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.

92 lines
2.1 KiB

  1. //+---------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993 - 1997.
  5. //
  6. // File: ClsPSht.h
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Methods:
  13. //
  14. // History:
  15. //
  16. //----------------------------------------------------------------------
  17. // This class defines custom modal property sheet
  18. // CClsidPropertySheet.
  19. #ifndef __CLSPSHT_H__
  20. #define __CLSPSHT_H__
  21. #include "LocPPg.h"
  22. #include "epoptppg.h"
  23. #define INPROC 0
  24. #define LOCALEXE 1
  25. #define SERVICE 2
  26. #define PURE_REMOTE 3
  27. #define REMOTE_LOCALEXE 4
  28. #define REMOTE_SERVICE 5
  29. #define SURROGATE 6
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CClsidPropertySheet
  32. class CClsidPropertySheet : public CPropertySheet
  33. {
  34. DECLARE_DYNAMIC(CClsidPropertySheet)
  35. // Construction
  36. public:
  37. CClsidPropertySheet(CWnd* pParentWnd = NULL);
  38. BOOL InitData(
  39. CString szAppName,
  40. HKEY hkAppID,
  41. HKEY * rghkCLSID,
  42. unsigned cCLSIDs);
  43. // Attributes
  44. public:
  45. CGeneralPropertyPage m_Page1;
  46. CLocationPropertyPage m_Page2;
  47. CSecurityPropertyPage m_Page3;
  48. CIdentityPropertyPage m_Page4;
  49. CRpcOptionsPropertyPage m_Page5;
  50. // Operations
  51. public:
  52. // Overrides
  53. // ClassWizard generated virtual function overrides
  54. //{{AFX_VIRTUAL(CClsidPropertySheet)
  55. protected:
  56. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. public:
  60. CString m_szAppName;
  61. HKEY m_hkAppID;
  62. HKEY * m_rghkCLSID;
  63. unsigned m_cCLSIDs;
  64. BOOL ValidateAndUpdate(void);
  65. BOOL ChangeCLSIDInfo(BOOL fLocal);
  66. BOOL LookAtCLSIDs(void);
  67. virtual ~CClsidPropertySheet();
  68. // Generated message map functions
  69. protected:
  70. //{{AFX_MSG(CClsidPropertySheet)
  71. afx_msg BOOL OnNcCreate(LPCREATESTRUCT lpCreateStruct);
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. };
  75. /////////////////////////////////////////////////////////////////////////////
  76. #endif // __CLSPSHT_H__