beautypg.com

Lock pages – Rockwell Automation 2711P Software Development Kit User Manual User Manual

Page 81

background image

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

PanelView Plus CE-Specific Extensions to the WinCE API 81

// Turn on the keypad handler.

SendNotifyMessage(HWND_BROADCAST, msgID, TRUE,0);

WM_KEYPAD_HANDLER is defined in othersdk.h in the
PanelView Plus CE SDK.

Lock Pages

This Win32 function locks into memory the specified region of the
virtual address space of the process, ensuring that subsequent access
to the region does not incur a page fault.

BOOL LockPages (LPVOID lpvAddress, DWORD cbSize,
PDWORD pPFNs, int fOptions);

Where fOpions are one of the following:

LOCKFLAG_WRITE // write access required

LOCKFLAG_QUERY_ONLY 0x002 // query only, page in but
don't lock

LOCKFLAG_READ // read access required (as opposed to
page

present but PAGE_NOACCESS)

Remarks

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