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.

61 lines
1.6 KiB

  1. //
  2. // Copyright 1997 - Microsoft
  3. //
  4. // HostDlg.H - Handles the IDD_HOST_SERVER_PAGE
  5. //
  6. #ifndef _HOSTDLG_H_
  7. #define _HOSTDLG_H_
  8. class CNewComputerExtensions; // fwd decl
  9. // Definitions
  10. LPVOID
  11. CHostServerPage_CreateInstance( void );
  12. // CHostServerPage
  13. class
  14. CHostServerPage:
  15. public ITab
  16. {
  17. private: // Members
  18. HWND _hDlg;
  19. CNewComputerExtensions* _pNewComputerExtension;
  20. BOOL * _pfActivatable;
  21. private: // Methods
  22. CHostServerPage();
  23. ~CHostServerPage();
  24. STDMETHOD(Init)();
  25. // Property Sheet Functions
  26. static INT_PTR CALLBACK
  27. PropSheetDlgProc( HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam );
  28. static UINT CALLBACK
  29. PropSheetPageProc( HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp );
  30. HRESULT _InitDialog( HWND hDlg, LPARAM lParam );
  31. INT _OnCommand( WPARAM wParam, LPARAM lParam );
  32. INT _OnNotify( WPARAM wParam, LPARAM lParam );
  33. HRESULT _OnPSPCB_Create( VOID );
  34. HRESULT _IsValidRISServer( IN LPCWSTR ServerName );
  35. HRESULT _UpdateWizardButtons( VOID );
  36. static HRESULT _OnSearch( HWND hDlg );
  37. public: // Methods
  38. friend LPVOID CHostServerPage_CreateInstance( void );
  39. // ITab
  40. STDMETHOD(AddPages)( LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam, LPUNKNOWN punk );
  41. STDMETHOD(ReplacePage)( UINT uPageID, LPFNADDPROPSHEETPAGE lpfnReplaceWith,
  42. LPARAM lParam, LPUNKNOWN punk );
  43. STDMETHOD(QueryInformation)( LPWSTR pszAttribute, LPWSTR * pszResult );
  44. STDMETHOD(AllowActivation)( BOOL * pfAllow );
  45. friend CNewComputerExtensions;
  46. };
  47. typedef CHostServerPage* LPCHostServerPage;
  48. #endif // _HOSTDLG_H_