[ros-diffs] [jimtabor] 54102: [Rtl] - Replace RtlQueryInformationActiveActivationContext and set it based on wine.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Wed Oct 12 22:48:02 UTC 2011


Author: jimtabor
Date: Wed Oct 12 22:48:01 2011
New Revision: 54102

URL: http://svn.reactos.org/svn/reactos?rev=54102&view=rev
Log:
[Rtl]
- Replace RtlQueryInformationActiveActivationContext and set it based on wine.


Modified:
    trunk/reactos/lib/rtl/actctx.c

Modified: trunk/reactos/lib/rtl/actctx.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/actctx.c?rev=54102&r1=54101&r2=54102&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/actctx.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/actctx.c [iso-8859-1] Wed Oct 12 22:48:01 2011
@@ -23,8 +23,6 @@
 #include <wine/unicode.h>
 
 BOOLEAN RtlpNotAllowingMultipleActivation;
-
-#define QUERY_ACTCTX_FLAG_ACTIVE (0x00000001)
 
 #define ACTCTX_FLAGS_ALL (\
     ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID |\
@@ -2673,6 +2671,22 @@
     return STATUS_SUCCESS;
 }
 
+NTSTATUS
+NTAPI
+RtlQueryInformationActiveActivationContext(ULONG ulInfoClass,
+                                           PVOID pvBuffer,
+                                           SIZE_T cbBuffer OPTIONAL,
+                                           SIZE_T *pcbWrittenOrRequired OPTIONAL)
+{
+    return RtlQueryInformationActivationContext(QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX,
+                                                NULL,
+                                                NULL,
+                                                ulInfoClass,
+                                                pvBuffer,
+                                                cbBuffer,
+                                                pcbWrittenOrRequired);
+}
+
 #define FIND_ACTCTX_RETURN_FLAGS 0x00000002
 #define FIND_ACTCTX_RETURN_ASSEMBLY_METADATA 0x00000004
 #define FIND_ACTCTX_VALID_MASK (FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX | FIND_ACTCTX_RETURN_FLAGS | FIND_ACTCTX_RETURN_ASSEMBLY_METADATA)




More information about the Ros-diffs mailing list