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.

115 lines
2.5 KiB

  1. /*****************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1992 **/
  4. /*****************************************************************/
  5. /*
  6. perms.hxx
  7. This file contains the classes used by the Directory Permissions
  8. Dialog.
  9. DIRECTORY_PERMISSIONS_DLG
  10. AFP_BITMAP
  11. History:
  12. NarenG 11/30/92 Created
  13. */
  14. #ifndef _PERMS_HXX_
  15. #define _PERMS_HXX_
  16. #include <focuschk.hxx>
  17. #include <ellipsis.hxx>
  18. /*************************************************************************
  19. NAME: DIRECTORY_PERMISSIONS_DLG
  20. SYNOPSIS: This is the dialog for setting permissions on directories.
  21. INTERFACE: DIRECTORY_PERMISSIONS_DLG() - Constructor
  22. PARENT:
  23. USES: PUSH_BUTTON, CHECKBOX, SLT, BLT_COMBOBOX
  24. CAVEATS:
  25. NOTES:
  26. HISTORY:
  27. NarenG 11/30/92 Created
  28. **************************************************************************/
  29. class DIRECTORY_PERMISSIONS_DLG: public DIALOG_WINDOW
  30. {
  31. private:
  32. //
  33. // Permission checkboxes.
  34. //
  35. FOCUS_CHECKBOX _chkOwnerSeeFiles;
  36. FOCUS_CHECKBOX _chkOwnerSeeFolders;
  37. FOCUS_CHECKBOX _chkOwnerMakeChanges;
  38. FOCUS_CHECKBOX _chkGroupSeeFiles;
  39. FOCUS_CHECKBOX _chkGroupSeeFolders;
  40. FOCUS_CHECKBOX _chkGroupMakeChanges;
  41. FOCUS_CHECKBOX _chkWorldSeeFiles;
  42. FOCUS_CHECKBOX _chkWorldSeeFolders;
  43. FOCUS_CHECKBOX _chkWorldMakeChanges;
  44. CHECKBOX _chkReadOnly;
  45. CHECKBOX _chkRecursePerms;
  46. SLT_ELLIPSIS _sltpPath;
  47. SLE _sleOwner;
  48. SLE _slePrimaryGroup;
  49. PUSH_BUTTON _pbOwner;
  50. PUSH_BUTTON _pbGroup;
  51. const TCHAR * _pszDirPath;
  52. BOOL _fDirInVolume;
  53. NLS_STR _nlsServerName;
  54. NLS_STR * _pnlsOwner;
  55. NLS_STR * _pnlsGroup;
  56. DWORD * _lpdwPerms;
  57. //
  58. // Represents the target server
  59. //
  60. AFP_SERVER_HANDLE _hServer;
  61. protected:
  62. virtual BOOL OnOK( VOID );
  63. virtual ULONG QueryHelpContext( VOID );
  64. virtual BOOL OnCommand( const CONTROL_EVENT & event );
  65. public:
  66. DIRECTORY_PERMISSIONS_DLG( HWND hwndParent,
  67. AFP_SERVER_HANDLE hServer,
  68. const TCHAR *pszServerName,
  69. BOOL fCalledBySrvMgr,
  70. const TCHAR *pszDirPath,
  71. const TCHAR *pszDisplayPath,
  72. BOOL fDirInVolume = TRUE,
  73. NLS_STR *pnlsOwner = NULL,
  74. NLS_STR *pnlsGroup = NULL,
  75. DWORD *lpdwPerms = 0 );
  76. };
  77. #endif