次の方法で共有


OEMCalcFSPages (Compact 2013)

10/16/2014

This function recalculates how much memory to allocate to the object store.

Syntax

DWORD OEMCalcFSPages(
  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, that is reserved for the object store based on FSRAMPERCENT.

Return Value

Number of pages to assign to the object store.

Remarks

This function is called in the OEM adaption layer (OAL) by the kernel.

The minimum size for the object store is 32 KB and the maximum size is 128 MB. This function specifies the number of pages, so the maximum number of pages you can have is 32,000 (128 MB/4 KB).

If you implement OEMCalcFSPages, set the pfnCalcFSPages member of OEMGLOBAL to point to this function.

Requirements

Header

Developer Implemented

Library

OEMMain.lib or OEMMain_StaticKITL.lib

See Also

Reference

Optional OAL Functions