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.

60 lines
1.8 KiB

  1. //
  2. // Copyright 1997 - Microsoft
  3. //
  4. // CLIENT.H - Handles the "IntelliMirror" IDD_PROP_INTELLIMIRROR_CLIENT tab
  5. //
  6. #ifndef _CLIENT_H_
  7. #define _CLIENT_H_
  8. // Definitions
  9. LPVOID
  10. CClientTab_CreateInstance( void );
  11. class CComputer;
  12. typedef CComputer* LPCComputer;
  13. // CClientTab
  14. class
  15. CClientTab:
  16. public ITab
  17. {
  18. private: // Members
  19. HWND _hDlg; // dialogs HWND
  20. LPUNKNOWN _punkComputer; // Pointer back to computer object
  21. BOOL _fChanged:1; // UI changed by user
  22. HWND _hNotify; // HWND of the DSA notify object
  23. private: // Methods
  24. CClientTab();
  25. ~CClientTab();
  26. STDMETHOD(Init)();
  27. // Property Sheet Functions
  28. STDMETHOD(_InitDialog)( HWND hDlg, LPARAM lParam );
  29. STDMETHOD(_OnCommand)( WPARAM wParam, LPARAM lParam );
  30. STDMETHOD(_ApplyChanges)( VOID);
  31. STDMETHOD_(INT,_OnNotify)( WPARAM wParam, LPARAM lParam );
  32. static INT_PTR CALLBACK
  33. PropSheetDlgProc( HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam );
  34. static UINT CALLBACK
  35. PropSheetPageProc( HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp );
  36. STDMETHOD(_JumpToServer)( BOOLEAN ShowProperties );
  37. STDMETHOD(_IsValidRISServer)( IN PCWSTR ServerName );
  38. static HRESULT _OnSearch( HWND hwndParent );
  39. public: // Methods
  40. friend LPVOID CClientTab_CreateInstance( void );
  41. // ITab
  42. STDMETHOD(AddPages)( LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam, LPUNKNOWN punk );
  43. STDMETHOD(ReplacePage)( UINT uPageID, LPFNADDPROPSHEETPAGE lpfnReplaceWith,
  44. LPARAM lParam, LPUNKNOWN punk );
  45. STDMETHOD(QueryInformation)(LPWSTR pszAttribute, LPWSTR * pszResult );
  46. STDMETHOD(AllowActivation)( BOOL * pfAllow );
  47. };
  48. typedef CClientTab* LPCClientTab;
  49. #endif // _CLIENT_H_