Author: akhaldi
Date: Sun Jun 8 17:01:26 2014
New Revision: 63556
URL:
http://svn.reactos.org/svn/reactos?rev=63556&view=rev
Log:
[NTMARTA]
* {Set,Query}SecurityAccessMask should not be exported.
* We no longer need to define _WIN32_WINNT as 0x600.
CORE-8174
Modified:
trunk/reactos/dll/win32/ntmarta/CMakeLists.txt
trunk/reactos/dll/win32/ntmarta/ntmarta.c
Modified: trunk/reactos/dll/win32/ntmarta/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ntmarta/CMakeLis…
==============================================================================
--- trunk/reactos/dll/win32/ntmarta/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ntmarta/CMakeLists.txt [iso-8859-1] Sun Jun 8 17:01:26 2014
@@ -1,9 +1,5 @@
-
add_definitions(-D__WINESRC__)
-
-remove_definitions(-D_WIN32_WINNT=0x502)
-add_definitions(-D_WIN32_WINNT=0x600)
spec2def(ntmarta.dll ntmarta.spec)
Modified: trunk/reactos/dll/win32/ntmarta/ntmarta.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ntmarta/ntmarta.…
==============================================================================
--- trunk/reactos/dll/win32/ntmarta/ntmarta.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ntmarta/ntmarta.c [iso-8859-1] Sun Jun 8 17:01:26 2014
@@ -25,12 +25,49 @@
* UPDATE HISTORY:
* 07/26/2005 Created
*/
+
#include "ntmarta.h"
#define NDEBUG
#include <debug.h>
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)