Share via


pOEMCalcFSPages

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

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.

Syntax

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 FSRAMPERCENT.

Return Value

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 128 MB. pOEMCalcFSPages specifies the number of pages, so you actually have a maximum value of 128 MB/4 KB = 32 KB pages.

Requirements

Header Developer Implemented
Library Nk.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Concepts

Memory Initialization

Other Resources

FSRAMPERCENT