SystemFunction040(3w)

SystemFunction0403w

Usage

NTSTATUS SystemFunction040
(
PVOID memory,
ULONG length,
ULONG flags
)

Overview

MSDN documents this function as RtlEncryptMemory and declares it in ntsecapi.h.

Params

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.

Returns

Success: STATUS_SUCCESS

Failure: NTSTATUS error code.

Notes

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.

Implementation

Declared in "ntsecapi.h".

Implemented in "dlls/advapi32/crypt.c".

Debug channel "crypt".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.