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.

80 lines
2.4 KiB

  1. //
  2. // Copyright 1997 - Microsoft
  3. //
  4. // CLIENT.H - Handles the "IntelliMirror" IDD_PROP_INTELLIMIRROR_CLIENT tab
  5. //
  6. #ifdef INTELLIMIRROR_GROUPS
  7. #ifndef _GROUPS_H_
  8. #define _GROUPS_H_
  9. // Definitions
  10. LPVOID
  11. CGroupsTab_CreateInstance( void );
  12. class CComputer;
  13. typedef CComputer* LPCComputer;
  14. // CGroupsTab
  15. class
  16. CGroupsTab:
  17. public ITab
  18. {
  19. private:
  20. // Enums
  21. enum {
  22. MODE_SHELL = 0,
  23. MODE_ADMIN
  24. };
  25. HWND _hDlg;
  26. LPUNKNOWN _punk; // Pointer back to owner object
  27. BOOL _fChanged:1; // Has the dialog been changed
  28. private: // Methods
  29. CGroupsTab();
  30. ~CGroupsTab();
  31. STDMETHOD(Init)();
  32. // This should be a copy of what CIMSCP has. We compare our
  33. // values with the IMSCP to see if the user has changed any
  34. // of their settings and only update those that have changed.
  35. BOOL _fAllowNewClients; // netbootAllowNewClients
  36. BOOL _fLimitClients; // netbootLimitClients
  37. UINT _uMaxClients; // netbootMaxClients
  38. UINT _CGroupsTabs; // netbootCurrentClientCount
  39. BOOL _fAnswerRequests; // netbootAnswerRequests
  40. BOOL _fOnlyValidClients; // netbootAnswerOnlyValidClients
  41. LPWSTR _pszNamimgPolicy; // netbootNewMachineNamingPolicy
  42. LPWSTR _pszNewMachineOU; // netbootNewMachineOU
  43. LPWSTR _pszMirroredOSs; // netbootIntelliMirrorOSes
  44. LPWSTR _pszTools; // netbootTools
  45. LPWSTR _pszLocalOSs; // netbootLocallyInstalledOSes
  46. // Property Sheet Functions
  47. HRESULT _InitDialog( HWND hDlg, LPARAM lParam );
  48. BOOL _OnCommand( WPARAM wParam, LPARAM lParam );
  49. INT _OnNotify( WPARAM wParam, LPARAM lParam );
  50. static INT_PTR CALLBACK
  51. PropSheetDlgProc( HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam );
  52. static UINT CALLBACK
  53. PropSheetPageProc( HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp );
  54. public: // Methods
  55. friend LPVOID CGroupsTab_CreateInstance( void );
  56. // ITab
  57. STDMETHOD(AddPages)( LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam, LPUNKNOWN punk );
  58. STDMETHOD(ReplacePage)( UINT uPageID, LPFNADDPROPSHEETPAGE lpfnReplaceWith,
  59. LPARAM lParam, LPUNKNOWN punk );
  60. STDMETHOD(QueryInformation)( LPWSTR pszAttribute, LPWSTR * pszResult );
  61. STDMETHOD(AllowActivation)( BOOL * pfAllow );
  62. };
  63. typedef CGroupsTab* LPCGroupsTab;
  64. #endif // _GROUPS_H_
  65. #endif // INTELLIMIRROR_GROUPS