From c62dd29b377b92d032055cc11ad78e3c012beae8 Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Sun, 21 Mar 2010 10:31:02 -0500 Subject: [PATCH] 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 492d642c7a7..bb019d04608 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 3ce14b363b8..cafe9039f0b 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);