home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 3_2004-2005.ISO / Data / Zips / AllAPI_API179141992004.psc / API / A / AddAccessDeniedAce.api < prev    next >
Encoding:
INI File  |  2004-08-30  |  1.4 KB  |  37 lines

  1. [NAME]
  2. AddAccessDeniedAce
  3. [DESCRIPTION]
  4. The AddAccessDeniedAce function adds an access-denied ACE to an ACL. The access is denied to a specified SID. To control whether the new ACE can be inherited by child objects, use the AddAccessDeniedAceEx function.
  5. [DECLARATION]
  6. Declare Function AddAccessDeniedAce Lib "advapi32.dll" (pAcl As Byte, ByVal dwAceRevision As Long, ByVal AccessMask As Long, pSid As Byte) As Long
  7. [VBNET]
  8. N/A
  9. [OS]
  10. Requires Windows NT 3.1 or later; Win9x/ME: Not supported
  11. [LIBRARY]
  12. Advapi32
  13. [PARAMETERS]
  14. ╖ pAcl
  15. [in/out] Pointer to an ACL structure. This function adds an access-denied ACE to the end of this ACL. The ACE is in the form of an ACCESS_DENIED_ACE structure.
  16.  
  17. ╖ dwAceRevision
  18. [in] Specifies the revision level of the ACL being modified.
  19. Windows NT 4.0 and earlier: This value must be ACL_REVISION.
  20. Windows 2000: This value can be ACL_REVISION or ACL_REVISION_DS. Use ACL_REVISION_DS if the ACL contains object-specific ACEs.
  21.  
  22. ╖ AccessMask
  23. [in] Specifies the mask of access rights being denied to the specified SID.
  24.  
  25. ╖ pSid
  26. [in] Pointer to the SID structure representing the user, group, or logon account being denied access.
  27. [RETURNS]
  28. If the function succeeds, the return value is nonzero.
  29.  
  30. If the function fails, the return value is zero. To get extended error information, call GetLastError.
  31. [EXAMPLES]
  32. NTFS Permissions*9C3BBC69930313A7D25B3142EF2C084B.html
  33. [RELATED]
  34. GetAce
  35. AddAce
  36. AddAccessAllowedAce
  37.