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.

62 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. STDMETHOD_(PWCHAR,AnsiStringToUnicodeString)( IN PCHAR pszAnsi, OUT PWCHAR pszUnicode, IN USHORT cbUnicode);
  40. public: // Methods
  41. friend LPVOID CClientTab_CreateInstance( void );
  42. // ITab
  43. STDMETHOD(AddPages)( LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam, LPUNKNOWN punk );
  44. STDMETHOD(ReplacePage)( UINT uPageID, LPFNADDPROPSHEETPAGE lpfnReplaceWith,
  45. LPARAM lParam, LPUNKNOWN punk );
  46. STDMETHOD(QueryInformation)(LPWSTR pszAttribute, LPWSTR * pszResult );
  47. STDMETHOD(AllowActivation)( BOOL * pfAllow );
  48. };
  49. typedef CClientTab* LPCClientTab;
  50. #endif // _CLIENT_H_