pNKEnumExtensionDRAM
Note If using more than two extended memory sections, the OEM must first change the kernel variable. For more information, see the Remarks section.
Copy
DWORD (*pNKEnumExtensionDRAM)(
PMEMORY_SECTION pMemSections,
DWORD cMemSections
);
Parameters
pMemSections
[in] Pointer to an array of
MEMORY_SECTION structures containing the extended memory sections.
cMemSections
[in] Size of the array specified by
pMemSections. This value represents the maximum number of extended memory sections that can be reported to the kernel.
Return Values
Returns the number of extended memory sections written to the array specified by pMemSections.
Remarks
During OEMInit, the OEM must initialize pNKEnumExtensionDRAM to point to an OEM-defined OEMEnumExtensionDRAM function.
The kernel checks pNKEnumExtensionDRAM during boot. If the pointer is NULL (default), the kernel will call OEMGetExtensionDRAM. If the pointer is set, the kernel will not call OEMGetExtensionDRAM.
Example
The following example shows an OEM implementation of pNKEnumExtensionDRAM. Note how this example limits the number of sections to the number the kernel has indicated it can handle. By providing the sections in decreasing order of size, this code gives the kernel the largest possible amount of memory.
Copy
static DWORD OEMEnumExtensionDRAM(
PMEMORY_SECTION pMemSections,
DWORD cMemSections)
{
DWORD cSections = 0;
if (cSections < cMemSections)
{
pMemSections[cSections].dwFlags = 0;
pMemSections[cSections].dwStart = 0x80000000;
pMemSections[cSections].dwLen = 0x01000000;
cSections++;
}
if (cSections < cMemSections)
{
pMemSections[cSections].dwFlags = 0;
pMemSections[cSections].dwStart = 0x82000000;
pMemSections[cSections].dwLen = 0x00f00000;
cSections++;
}
if (cSections < cMemSections)
{
pMemSections[cSections].dwFlags = 0;
pMemSections[cSections].dwStart = 0x81000000;
pMemSections[cSections].dwLen = 0x00080000;
cSections++;
}
return cSections;
}
Requirements
OS Versions: Windows CE .NET 4.0 and later.Header: Nkintr.h.Link Library: Coredll.lib.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
제한된 크기의 디렉토리를 만드는 방법오늘 저는 장치에 공간이 없을 때 백업 중에 응용 프로그램이 어떻게 작동하는지 테스트(및 수정)하는 작업이 있습니다. 결과적으로 "남은 공간 없음"오류로 백업이 실패하면 새 파일이 없어야 합니다. 지금까지 문제를 재...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.