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.

97 lines
2.1 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. server.hxx
  7. This file contains SERVER_PARAMETERS_DIALOG class definition
  8. FILE HISTORY:
  9. NarenG 12/15/92 Created
  10. */
  11. #ifndef _SERVER_HXX_
  12. #define _SERVER_HXX_
  13. #include <ellipsis.hxx>
  14. /*************************************************************************
  15. NAME: SERVER_PARAMETERS_DIALOG
  16. SYNOPSIS: The class setting and viewing server parameters from the
  17. server manager and control panel dialogs. It contains the
  18. magic group for Session Limit, MLE for the login message and
  19. checkboxes for options, the OK, Cancel and help buttons.
  20. INTERFACE: SERVER_PARAMETERS_DIALOG() - Constructor
  21. PARENT: DIALOG_WINDOW
  22. USES: SLT, MLE, SPIN_SLE_NUM, SPIN_GROUP, PUSH_BUTTON
  23. CAVEATS:
  24. NOTES:
  25. HISTORY:
  26. NarenG 12/15/92 Created
  27. **************************************************************************/
  28. class SERVER_PARAMETERS_DIALOG : public DIALOG_WINDOW
  29. {
  30. private:
  31. SLT_ELLIPSIS _sltServerName;
  32. PUSH_BUTTON _pbChange;
  33. MLE _mleTextMsg;
  34. CHECKBOX _chkAllowPasswordSaves;
  35. CHECKBOX _chkAllowGuestLogons;
  36. CHECKBOX _chkAllowClearTextPasswords;
  37. MAGIC_GROUP _mgrpSessionLimit;
  38. SPIN_SLE_NUM _spsleSessions;
  39. SPIN_GROUP _spgrpSessions;
  40. DWORD _dwParmNum;
  41. //
  42. // Represents the target server
  43. //
  44. AFP_SERVER_HANDLE _hServer;
  45. protected:
  46. virtual BOOL OnOK( VOID );
  47. virtual ULONG QueryHelpContext( VOID );
  48. virtual BOOL OnCommand( const CONTROL_EVENT & event );
  49. //
  50. // Query or set the contents of User Limit
  51. //
  52. DWORD QuerySessionLimit( VOID ) const;
  53. VOID SetSessionLimit( DWORD dwSessionLimit );
  54. public:
  55. SERVER_PARAMETERS_DIALOG( HWND hwndParent,
  56. AFP_SERVER_HANDLE hServer,
  57. const TCHAR * pszServerName );
  58. ~SERVER_PARAMETERS_DIALOG();
  59. };
  60. #endif