OEMEnumExtensionDRAM (Compact 2013)

10/16/2014

This function returns information about extension dynamic RAM (DRAM) if it is present on the device.

Syntax

DWORD OEMEnumExtensionDRAM(
  PMEMORY_SECTION pMemSections,
  DWORD dwMemSections
);

Parameters

  • pMemSections
    [in, out] On input or output, the address of the MEMORY_SECTION array.
  • dwMemSections
    [in] Number of entries in pMemSections.

Return Value

The number of memory sections that are described to the kernel.

Remarks

If you implement OEMEnumExtensionDRAM, set the pfnEnumExtensionDRAM member of OEMGLOBAL to point to this function.

The kernel calls this function only once and requires that all MEMORY_SECTION information be complete. Confirm that the number of filled memory sections is less than dwMemSections.

If you implement OEMEnumExtensionDRAM, the kernel will call it in place of the OEMGetExtensionDRAM function. If your platform contains only two noncontiguous memory sections, you can continue to use OEMGetExtensionDRAM.

Requirements

Header

nkintr.h

Library

OEMMain.lib or OEMMain_StaticKITL.lib

See Also

Reference

Optional OAL Functions
OEMGetExtensionDRAM
dwMainMemoryEndAddress
OEMInit
OEMGetExtensionDRAM