Andrew Nguyen : include: Add prototypes for RtlEncryptMemory and RtlDecryptMemory in ntsecapi.h.

Alexandre Julliard julliard at winehq.org
Mon Mar 22 11:12:02 CDT 2010


Module: wine
Branch: master
Commit: c62dd29b377b92d032055cc11ad78e3c012beae8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c62dd29b377b92d032055cc11ad78e3c012beae8

Author: Andrew Nguyen <arethusa26 at gmail.com>
Date:   Sun Mar 21 10:31:02 2010 -0500

include: Add prototypes for RtlEncryptMemory and RtlDecryptMemory in ntsecapi.h.

---

 dlls/advapi32/crypt.c |    4 ++--
 include/ntsecapi.h    |    4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/advapi32/crypt.c b/dlls/advapi32/crypt.c
index 492d642..bb019d0 100644
--- a/dlls/advapi32/crypt.c
+++ b/dlls/advapi32/crypt.c
@@ -2302,7 +2302,7 @@ BOOLEAN WINAPI SystemFunction036(PVOID pbBuffer, ULONG dwLen)
 /******************************************************************************
  * SystemFunction040   (ADVAPI32.@)
  *
- * MSDN documents this function as RtlEncryptMemory.
+ * MSDN documents this function as RtlEncryptMemory and declares it in ntsecapi.h.
  *
  * PARAMS
  *  memory [I/O] Pointer to memory to encrypt.
@@ -2330,7 +2330,7 @@ NTSTATUS WINAPI SystemFunction040(PVOID memory, ULONG length, ULONG flags)
 /******************************************************************************
  * SystemFunction041  (ADVAPI32.@)
  *
- * MSDN documents this function as RtlDecryptMemory.
+ * MSDN documents this function as RtlDecryptMemory and declares it in ntsecapi.h.
  *
  * PARAMS
  *  memory [I/O] Pointer to memory to decrypt.
diff --git a/include/ntsecapi.h b/include/ntsecapi.h
index 3ce14b3..cafe903 100644
--- a/include/ntsecapi.h
+++ b/include/ntsecapi.h
@@ -337,8 +337,12 @@ typedef enum _POLICY_NOTIFICATION_INFORMATION_CLASS
 } POLICY_NOTIFICATION_INFORMATION_CLASS, *PPOLICY_NOTIFICATION_INFORMATION_CLASS;
 
 #define RtlGenRandom                    SystemFunction036
+#define RtlEncryptMemory                SystemFunction040
+#define RtlDecryptMemory                SystemFunction041
 
 BOOLEAN WINAPI RtlGenRandom(PVOID,ULONG);
+NTSTATUS WINAPI RtlEncryptMemory(PVOID,ULONG,ULONG);
+NTSTATUS WINAPI RtlDecryptMemory(PVOID,ULONG,ULONG);
 
 NTSTATUS WINAPI LsaAddAccountRights(LSA_HANDLE,PSID,PLSA_UNICODE_STRING,ULONG);
 NTSTATUS WINAPI LsaCallAuthenticationPackage(HANDLE,ULONG,PVOID,ULONG,PVOID*,PULONG,PNTSTATUS);




More information about the wine-cvs mailing list