Ignore:
Timestamp:
Apr 22, 2001, 12:39:27 PM (24 years ago)
Author:
sandervl
Message:

forward Ace functions to ntdll

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/advapi32/security.cpp

    r4537 r5569  
    1 /* $Id: security.cpp,v 1.7 2000-10-26 17:26:59 sandervl Exp $ */
     1/* $Id: security.cpp,v 1.8 2001-04-22 10:39:27 sandervl Exp $ */
    22/*
    33 * Win32 security API functions for OS/2
     
    747747  CallWin32ToNt (RtlCreateAcl(pAcl, nAclLength, dwAclRevision));
    748748}
     749
     750/*****************************************************************************
     751 * Name      : AddAce
     752 * Purpose   : The AddAce function adds one or more ACEs to a specified ACL.
     753 *             An ACE is an access-control entry. An ACL is an access-control list.
     754 * Parameters: PACL   pAcl               address of access-control list
     755 *             DWORD  dwAceRevision      ACL revision level
     756 *             DWORD  dwStartingAceIndex index of ACE position in ACL
     757 *             LPVOID pAceList           address of one or more ACEs
     758 *             DWORD  nAceListLength     size of buffer for ACEs
     759 * Variables :
     760 * Result    :
     761 * Remark    :
     762 * Status    : UNTESTED STUB
     763 *
     764 * Author    : Patrick Haller [Tue, 1998/06/16 23:00]
     765 *****************************************************************************/
     766
     767BOOL WIN32API AddAce(PACL   pAcl,
     768                        DWORD  dwAceRevision,
     769                        DWORD  dwStartingAceIndex,
     770                        LPVOID pAceList,
     771                        DWORD  nAceListLength)
     772{
     773  CallWin32ToNt (RtlAddAce(pAcl, dwAceRevision, dwStartingAceIndex, (PACE_HEADER)pAceList, nAceListLength));
     774}
     775
     776/*****************************************************************************
     777 * Name      : AddAccessAllowedAce
     778 * Purpose   : The AddAccessAllowedAce function adds an access-allowed ACE to
     779 *             an ACL. The access is granted to a specified SID. An ACE is an
     780 *             access-control entry. An ACL is an access-control list. A SID is
     781 *             a security identifier.
     782 * Parameters: PACL  pAcl           address of access-control list
     783 *             DWORD dwAceRevision  ACL revision level
     784 *             DWORD AccessMask     access mask
     785 *             PSID  pSid           address of security identifier
     786 * Variables :
     787 * Result    :
     788 * Remark    :
     789 * Status    : UNTESTED STUB
     790 *
     791 * Author    : Patrick Haller [Tue, 1998/06/16 23:00]
     792 *****************************************************************************/
     793
     794BOOL WIN32API AddAccessAllowedAce(PACL  pAcl,
     795                                     DWORD dwAceRevision,
     796                                     DWORD AccessMask,
     797                                     PSID  pSid)
     798{
     799  CallWin32ToNt (RtlAddAccessAllowedAce(pAcl, dwAceRevision, AccessMask, pSid));
     800}
     801
     802/*****************************************************************************
     803 * Name      : GetAce
     804 * Purpose   : The GetAce function obtains a pointer to an ACE in an ACL.
     805 *             An ACE is an access control entry. An ACL is an access control list.
     806 * Parameters: PACL   pAcl        address of access-control list
     807 *             DWORD  dwAceIndex  index of ACE to retrieve
     808 *             LPVOID *pAce       address of pointer to ACE
     809 * Variables :
     810 * Result    :
     811 * Remark    :
     812 * Status    : UNTESTED STUB
     813 *
     814 * Author    : Patrick Haller [Tue, 1998/06/16 23:00]
     815 *****************************************************************************/
     816
     817BOOL WIN32API GetAce(PACL   pAcl,
     818                        DWORD  dwAceIndex,
     819                        LPVOID *pAce)
     820{
     821  CallWin32ToNt (RtlGetAce(pAcl, dwAceIndex, pAce));
     822}
Note: See TracChangeset for help on using the changeset viewer.