pOEMCalcFSPages (Windows CE 5.0)
This function is called in the OAL by the kernel to recalculate how much memory should be allocated to the object store.
This function is implemented by OEMs.
DWORD (*pOEMCalcFSPages)(DWORD dwMemPages,DWORD dwDefaultFSPages);
Parameters
- dwMemPages
[in] The number of pages of memory reported to the kernel. - dwDefaultFSPages
[in] The current default size, in pages, reserved for the object store based on FSRAMPRECENT.
Return Values
Number of pages that should be assigned to the object store.
Remarks
The return value is the number of pages that should be assigned to the object store.
The minimum size for the object store is 32 KB and the maximum size is 256 MB. pOEMCalcFSPages specifies the number of pages, so you actually have a maximum value of 256 MB/4 KB = 64K pages.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Not applicable.
Link Library: Nk.lib.
See Also
FSRAMPERCENT | SetSystemMemoryDivision | Memory Initialization
Send Feedback on this topic to the authors