- Timestamp:
- Apr 22, 2001, 12:39:27 PM (24 years ago)
- Location:
- trunk/src/advapi32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/advapi32/ADVAPI32.CPP
r4410 r5569 1 /* $Id: ADVAPI32.CPP,v 1.1 6 2000-10-03 17:41:43sandervl Exp $ */1 /* $Id: ADVAPI32.CPP,v 1.17 2001-04-22 10:39:26 sandervl Exp $ */ 2 2 3 3 /* … … 273 273 } 274 274 275 276 /*****************************************************************************277 * Name : AddAccessAllowedAce278 * Purpose : The AddAccessAllowedAce function adds an access-allowed ACE to279 * an ACL. The access is granted to a specified SID. An ACE is an280 * access-control entry. An ACL is an access-control list. A SID is281 * a security identifier.282 * Parameters: PACL pAcl address of access-control list283 * DWORD dwAceRevision ACL revision level284 * DWORD AccessMask access mask285 * PSID pSid address of security identifier286 * Variables :287 * Result :288 * Remark :289 * Status : UNTESTED STUB290 *291 * Author : Patrick Haller [Tue, 1998/06/16 23:00]292 *****************************************************************************/293 294 BOOL WIN32API AddAccessAllowedAce(PACL pAcl,295 DWORD dwAceRevision,296 DWORD AccessMask,297 PSID pSid)298 {299 dprintf(("ADVAPI32: AddAccessAllowedAce(%08xh,%08xh,%08xh,%08xh) not implemented.\n",300 pAcl,301 dwAceRevision,302 AccessMask,303 pSid));304 305 return (FALSE);306 }307 308 309 275 /***************************************************************************** 310 276 * Name : AddAccessDeniedAce … … 338 304 return (FALSE); 339 305 } 340 341 342 /*****************************************************************************343 * Name : AddAce344 * Purpose : The AddAce function adds one or more ACEs to a specified ACL.345 * An ACE is an access-control entry. An ACL is an access-control list.346 * Parameters: PACL pAcl address of access-control list347 * DWORD dwAceRevision ACL revision level348 * DWORD dwStartingAceIndex index of ACE position in ACL349 * LPVOID pAceList address of one or more ACEs350 * DWORD nAceListLength size of buffer for ACEs351 * Variables :352 * Result :353 * Remark :354 * Status : UNTESTED STUB355 *356 * Author : Patrick Haller [Tue, 1998/06/16 23:00]357 *****************************************************************************/358 359 BOOL WIN32API AddAce(PACL pAcl,360 DWORD dwAceRevision,361 DWORD dwStartingAceIndex,362 LPVOID pAceList,363 DWORD nAceListLength)364 {365 dprintf(("ADVAPI32: AddAce(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",366 pAcl,367 dwAceRevision,368 dwStartingAceIndex,369 pAceList,370 nAceListLength));371 372 return (FALSE);373 }374 375 306 376 307 /***************************************************************************** … … 754 685 } 755 686 756 /***************************************************************************** 757 * Name : FindFirstFreeAce 758 * Purpose : The FindFirstFreeAce function retrieves a pointer to the first 759 * free byte in an access-control list (ACL). 760 * Parameters: PACL pAcl address of access-control list 761 * LPVOID *pAce address of pointer to first free byte 762 * Variables : 763 * Result : 764 * Remark : 765 * Status : UNTESTED STUB 766 * 767 * Author : Patrick Haller [Tue, 1998/06/16 23:00] 768 *****************************************************************************/ 769 770 BOOL WIN32API FindFirstFreeAce(PACL pAcl, 771 LPVOID *pAce) 772 { 773 dprintf(("ADVAPI32: FindFirstFreeAce(%08xh, %08xh) not implemented.\n", 774 pAcl, 775 pAce)); 776 777 return (FALSE); /* signal failure */ 778 } 779 780 781 /***************************************************************************** 782 * Name : GetAce 783 * Purpose : The GetAce function obtains a pointer to an ACE in an ACL. 784 * An ACE is an access control entry. An ACL is an access control list. 785 * Parameters: PACL pAcl address of access-control list 786 * DWORD dwAceIndex index of ACE to retrieve 787 * LPVOID *pAce address of pointer to ACE 788 * Variables : 789 * Result : 790 * Remark : 791 * Status : UNTESTED STUB 792 * 793 * Author : Patrick Haller [Tue, 1998/06/16 23:00] 794 *****************************************************************************/ 795 796 BOOL WIN32API GetAce(PACL pAcl, 797 DWORD dwAceIndex, 798 LPVOID *pAce) 799 { 800 dprintf(("ADVAPI32: GetAce(%08xh,%08xh,%08xh) not implemented.\n", 801 pAcl, 802 dwAceIndex, 803 pAce)); 804 805 return (FALSE); /* signal failure */ 806 } 687 807 688 808 689 -
trunk/src/advapi32/ADVAPI32.DEF
r4537 r5569 1 ; $Id: ADVAPI32.DEF,v 1.1 4 2000-10-26 17:26:58sandervl Exp $1 ; $Id: ADVAPI32.DEF,v 1.15 2001-04-22 10:39:27 sandervl Exp $ 2 2 3 3 ; … … 240 240 EqualPrefixSid = _EqualPrefixSid@8 @110 241 241 EqualSid = _EqualSid@8 @111 242 FindFirstFreeAce = _ FindFirstFreeAce@8@112242 FindFirstFreeAce = _RtlFirstFreeAce@8 @112 243 243 FreeSid = _FreeSid@4 @113 244 244 ; GetAccessPermissionsForObjectA @114 -
trunk/src/advapi32/security.cpp
r4537 r5569 1 /* $Id: security.cpp,v 1. 7 2000-10-26 17:26:59sandervl Exp $ */1 /* $Id: security.cpp,v 1.8 2001-04-22 10:39:27 sandervl Exp $ */ 2 2 /* 3 3 * Win32 security API functions for OS/2 … … 747 747 CallWin32ToNt (RtlCreateAcl(pAcl, nAclLength, dwAclRevision)); 748 748 } 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 767 BOOL 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 794 BOOL 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 817 BOOL 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.