.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH SystemFunction040 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBSystemFunction040\fR (ADVAPI32.@) .SH SYNOPSIS NTSTATUS SystemFunction040 ( PVOID \fImemory\fR, ULONG \fIlength\fR, ULONG \fIflags\fR ) .SH DESCRIPTION .PP \fBMSDN\fR documents this function as RtlEncryptMemory and declares it in ntsecapi.h. .SH PARAMS \fImemory\fR \fB[In/Out]\fR Pointer to \fImemory\fR to encrypt. .PP \fIlength\fR \fB[In]\fR Length of region to encrypt in bytes. .PP \fIflags\fR \fB[In]\fR Control whether other processes are able to decrypt the \fImemory\fR. \fBRTL_ENCRYPT_OPTION_SAME_PROCESS\fR RTL_ENCRYPT_OPTION_CROSS_PROCESS \fBRTL_ENCRYPT_OPTION_SAME_LOGON\fR. .PP .SH RETURNS .PP \fBSuccess:\fR \fBSTATUS_SUCCESS\fR .PP \fBFailure:\fR \fBNTSTATUS\fR error code. .SH NOTES .PP \fIlength\fR must be a multiple of \fBRTL_ENCRYPT_MEMORY_SIZE\fR. If \fIflags\fR are specified when encrypting, the same flag value must be given when decrypting the \fImemory\fR. .SH IMPLEMENTATION .PP Declared in \fB"ntsecapi.h"\fR. .PP Implemented in \fB"dlls/advapi32/crypt.c"\fR. .PP Debug channel \fB"crypt"\fR.