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.

60 lines
1.5 KiB

  1. //
  2. // Copyright 1997 - Microsoft
  3. //
  4. // CLIENT.H - Handles the "IntelliMirror" IDD_PROP_INTELLIMIRROR_CLIENT tab
  5. //
  6. #ifndef _TOOLS_H_
  7. #define _TOOLS_H_
  8. // Definitions
  9. LPVOID
  10. CToolsTab_CreateInstance( void );
  11. class CComputer;
  12. typedef CComputer* LPCComputer;
  13. // CToolsTab
  14. class
  15. CToolsTab:
  16. public ITab
  17. {
  18. private:
  19. HWND _hDlg;
  20. LPUNKNOWN _punkService; // Pointer back to owner object
  21. BOOL _fAdmin;
  22. HWND _hNotify; // DSA's notify object
  23. private: // Methods
  24. CToolsTab();
  25. ~CToolsTab();
  26. STDMETHOD(Init)();
  27. // Property Sheet Functions
  28. HRESULT _InitDialog( HWND hDlg, LPARAM lParam );
  29. HRESULT _OnCommand( WPARAM wParam, LPARAM lParam );
  30. INT _OnNotify( WPARAM wParam, LPARAM lParam );
  31. static INT_PTR CALLBACK
  32. PropSheetDlgProc( HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam );
  33. static UINT CALLBACK
  34. PropSheetPageProc( HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp );
  35. HRESULT _OnSelectionChanged( );
  36. public: // Methods
  37. friend LPVOID CToolsTab_CreateInstance( void );
  38. // ITab
  39. STDMETHOD(AddPages)( LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam, LPUNKNOWN punk );
  40. STDMETHOD(ReplacePage)( UINT uPageID, LPFNADDPROPSHEETPAGE lpfnReplaceWith,
  41. LPARAM lParam, LPUNKNOWN punk );
  42. STDMETHOD(QueryInformation)( LPWSTR pszAttribute, LPWSTR * pszResult );
  43. STDMETHOD(AllowActivation)( BOOL * pfAllow );
  44. };
  45. typedef CToolsTab* LPCToolsTab;
  46. #endif // _TOOLS_H_