Share via


PREfast Warning 253 (Windows CE 5.0)

Send Feedback

253 - MmSecureVirtualMemory locks VADs not pages.
Additional Information: Dereferences must still be protected by try-except.

This warning is specific to Windows NT kernel-mode code.

This warning reminds you that MmSecureVirtualMemory only locks the VADs in a process address space, not the underlying data.

This function is typically used to secure VADs of a user process memory space. The data can still be paged out.

If a failure to page in user-mode data occurs, a page fault is raised. If this page fault is not handled, the system crashes.

You cannot fix this warning.

Example

Defective Source

MmSecureVirtualMemory(NULL,
                      0,
                      0);

Corrected Source

; // use something else

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.