OEMInit
Other versions of this page are also available for the following:
8/27/2008
This function is implemented by the OEM to initialize all hardware interfaces for the target device.
Syntax
void OEMInit (void);
Parameters
None.
Return Value
None.
Remarks
This function can register ISRs by calling the kernel function HookInterrupt.
The kernel calls OEMInit after it has performed minimal initialization. In this state, interrupts are disabled and the kernel is unable to handle exceptions. The only kernel service available to this function is HookInterrupt.
For more information, see Implementing the OEMInit Function.
NKGLOBAL is a structure which kernel exports to OEM Adaptation Layer code. All OAL code has access to this structure through a variable declared in Nkstub.lib named g_pNKGlobal
. To update dwProcessorType** field of this structure, in OEMInit, OAL code can do the following:
g_pNKGlobal
->dwProcessorType = <process type>;
Similarly other data members in NK Global structure can be updated by OAL in their startup code (OEMInit function).**
Requirements
Header | nkintr.h |
Library | Nk.lib, Nkstub.lib |
Windows Embedded CE | Windows CE 2.10 and later |
See Also
Reference
MainMemoryEndAddress
pQueryPerformanceCounter
pQueryPerformanceFrequency
pReadRegistryFromOEM
pWriteRegistryToOEM
CEProcessorType