mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[NTMARTA]
* {Set,Query}SecurityAccessMask should not be exported. * We no longer need to define _WIN32_WINNT as 0x600. CORE-8174 svn path=/trunk/; revision=63556
This commit is contained in:
parent
f55a509638
commit
8db88e6145
2 changed files with 37 additions and 4 deletions
|
@ -1,10 +1,6 @@
|
|||
|
||||
|
||||
add_definitions(-D__WINESRC__)
|
||||
|
||||
remove_definitions(-D_WIN32_WINNT=0x502)
|
||||
add_definitions(-D_WIN32_WINNT=0x600)
|
||||
|
||||
spec2def(ntmarta.dll ntmarta.spec)
|
||||
|
||||
list(APPEND SOURCE
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
* UPDATE HISTORY:
|
||||
* 07/26/2005 Created
|
||||
*/
|
||||
|
||||
#include "ntmarta.h"
|
||||
|
||||
#define NDEBUG
|
||||
|
@ -32,6 +33,42 @@
|
|||
|
||||
HINSTANCE hDllInstance;
|
||||
|
||||
/* FIXME: Vista+ API */
|
||||
VOID
|
||||
WINAPI
|
||||
SetSecurityAccessMask(IN SECURITY_INFORMATION SecurityInformation,
|
||||
OUT LPDWORD DesiredAccess)
|
||||
{
|
||||
*DesiredAccess = 0;
|
||||
|
||||
if (SecurityInformation & (OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION))
|
||||
*DesiredAccess |= WRITE_OWNER;
|
||||
|
||||
if (SecurityInformation & DACL_SECURITY_INFORMATION)
|
||||
*DesiredAccess |= WRITE_DAC;
|
||||
|
||||
if (SecurityInformation & SACL_SECURITY_INFORMATION)
|
||||
*DesiredAccess |= ACCESS_SYSTEM_SECURITY;
|
||||
}
|
||||
|
||||
/* FIXME: Vista+ API */
|
||||
VOID
|
||||
WINAPI
|
||||
QuerySecurityAccessMask(IN SECURITY_INFORMATION SecurityInformation,
|
||||
OUT LPDWORD DesiredAccess)
|
||||
{
|
||||
*DesiredAccess = 0;
|
||||
|
||||
if (SecurityInformation & (OWNER_SECURITY_INFORMATION |
|
||||
GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION))
|
||||
{
|
||||
*DesiredAccess |= READ_CONTROL;
|
||||
}
|
||||
|
||||
if (SecurityInformation & SACL_SECURITY_INFORMATION)
|
||||
*DesiredAccess |= ACCESS_SYSTEM_SECURITY;
|
||||
}
|
||||
|
||||
static ACCESS_MODE
|
||||
AccpGetAceAccessMode(IN PACE_HEADER AceHeader)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue