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 / AddAce.api < prev    next >
Encoding:
INI File  |  2004-08-30  |  1.6 KB  |  40 lines

  1. [NAME]
  2. AddAce
  3. [DESCRIPTION]
  4. The AddAce function adds one or more ACEs to a specified ACL. An ACE is an access-control entry. An ACL is an access-control list.
  5. [DECLARATION]
  6. Declare Function AddAce Lib "advapi32.dll" (ByVal pAcl As Long, ByVal dwAceRevision As Long, ByVal dwStartingAceIndex As Long, ByVal pAceList As Long, ByVal nAceListLength As Long) 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 ACE to this ACL.
  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. ╖ dwStartingAceIndex
  23. [in] Specifies the position in the ACL's list of ACEs at which to add new ACEs. A value of zero inserts the ACEs at the beginning of the list. A value of MAXDWORD appends the ACEs to the end of the list.
  24.  
  25. ╖ pAceList
  26. [in] Pointer to a list of one or more ACEs to be added to the specified ACL. The ACEs in the list must be stored contiguously.
  27.  
  28. ╖ nAceListLength
  29. [in] Specifies the size, in bytes, of the input buffer pointed to by the pAceList parameter.
  30. [RETURNS]
  31. If the function succeeds, the return value is nonzero.
  32.  
  33. If the function fails, the return value is zero. To get extended error information, call GetLastError.
  34. [EXAMPLES]
  35. NTFS Permissions*9C3BBC69930313A7D25B3142EF2C084B.html
  36. [RELATED]
  37. GetAce
  38. AddAccessAllowedAce
  39. AddAccessDeniedAce
  40.