The following sample program illustrates the Address Windowing Extensions. #include <windows.h> #include <stdio.h> #include <tchar.h> #define MEMORY_REQUESTED 1024*1024 // request a megabyte BOOL LoggedSetLockPagesPrivilege ( HANDLE hProcess, BOOL bEnable); void _cdecl main() { BOOL bResult; // generic Boolean value ULONG_PTR NumberOfPages; // number of pages to request ULONG_PTR NumberOfPagesInit

{{#tags}}- {{label}}
{{/tags}}