Leaked source code of windows server 2003
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.

53 lines
1.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1992 **/
  4. /**********************************************************************/
  5. /*
  6. ShareAcl.hxx
  7. This file contains the manifests for the Share ACL UI to the Generic
  8. ACL Editor.
  9. FILE HISTORY:
  10. ChuckC 10-Aug-1992 Created
  11. Yi-HsinS 9-Oct-1992 Added ulHelpContextBase to EditShareAcl
  12. */
  13. #ifndef _SHAREACL_HXX_
  14. #define _SHAREACL_HXX_
  15. APIERR EditShareAcl( HWND hwndParent,
  16. const TCHAR * pszServer,
  17. const TCHAR * pszResource,
  18. BOOL * pfSecDescModified,
  19. OS_SECURITY_DESCRIPTOR ** ppOsSecDesc,
  20. ULONG ulHelpContextBase ) ;
  21. APIERR CreateDefaultAcl( OS_SECURITY_DESCRIPTOR ** ppOsSecDesc ) ;
  22. APIERR GetSharePerm (const TCHAR * pszServer,
  23. const TCHAR * pszShare,
  24. OS_SECURITY_DESCRIPTOR ** ppOsSecDesc ) ;
  25. APIERR SetSharePerm (const TCHAR * pszServer,
  26. const TCHAR * pszShare,
  27. const OS_SECURITY_DESCRIPTOR * pOsSecDesc ) ;
  28. /*
  29. * Share General Permissions
  30. */
  31. #define FILE_PERM_GEN_NO_ACCESS (0)
  32. #define FILE_PERM_GEN_READ (GENERIC_READ |\
  33. GENERIC_EXECUTE)
  34. #define FILE_PERM_GEN_MODIFY (GENERIC_READ |\
  35. GENERIC_EXECUTE |\
  36. GENERIC_WRITE |\
  37. DELETE )
  38. #define FILE_PERM_GEN_ALL (GENERIC_ALL)
  39. #endif // _SHAREACL_HXX_