SystemFunction040 (ADVAPI32.@)
NTSTATUS SystemFunction040 ( PVOID memory, ULONG length, ULONG flags )
MSDN documents this function as RtlEncryptMemory and declares it in ntsecapi.h.
memory | [In/Out] | Pointer to memory to encrypt. |
length | [In] | Length of region to encrypt in bytes. |
flags | [In] | Control whether other processes are able to decrypt the memory. RTL_ENCRYPT_OPTION_SAME_PROCESS RTL_ENCRYPT_OPTION_CROSS_PROCESS RTL_ENCRYPT_OPTION_SAME_LOGON. |
Success: STATUS_SUCCESS
Failure: NTSTATUS error code.
length must be a multiple of RTL_ENCRYPT_MEMORY_SIZE. If flags are specified when encrypting, the same flag value must be given when decrypting the memory.
Declared in "include/ntsecapi.h". gitlab.winehq.org/wine/wine/blob/master/include/ntsecapi.h
Implemented in "dlls/advapi32/crypt.c". gitlab.winehq.org/wine/wine/blob/master/dlls/advapi32/crypt.c
Debug channel "crypt".
Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Dec 2024.