beautypg.com

Setsystemmemorydivision, Unlock pages – Rockwell Automation 2711P Software Development Kit User Manual User Manual

Page 82

background image

Publication 2711P-UM005A-EN-P - March 2007

82 PanelView Plus CE-Specific Extensions to the WinCE API

UnLock Pages

This Win32 function unlocks a specified range of pages in the virtual
address space of a process, enabling the system to swap the pages out
if necessary.

BOOL UnlockPages (LPVOID lpvAddress, DWORD cbSize);

Remarks

Platform Builder does not properly export the definition. Use
othersdk.h in the PanelView Plus CE SDK.

SetSystemMemoryDivision

This Win CE function sets the amount of DRAM allocated to the
system.

DWORD SetSystemMemoryDivision (DWORD dwStorePages);

Remarks

Total DRAM installed can be obtained with a call to
rm_GetParameter() using
RM_PARAMETER_PHYSICAL_MEMORY_SIZE as the first argument.
This memory is divided into two logical partitions, one for the object
Store (RAMDISK), and one for system memory. The memory available
for the Object Store will be the total amount of memory less the
amount allocated to the system. The number of 4KB pages to be
allocated to the system is specified by dwStorePages.