다음을 통해 공유


pOEMCalcFSPages (Windows Embedded CE 6.0)

1/5/2010

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 OEMMain.lib or OEMMain_StaticKITL.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Optional OAL Functions

Concepts

Memory Initialization

Other Resources

FSRAMPERCENT