OEMRestoreCoProcRegister (Windows Embedded CE 6.0)

1/5/2010

This function is called by the kernel to restore the platform-specific debug registers when a thread switch occurs.

Syntax

void OEMRestoreCoProcRegister(
  LPBYTE pArea
);

Parameters

Return Value

None.

Remarks

Leave the function pointer to NULL if the platform does not have debug registers.

To enable the kernel to call this function, the OEM must declare a function pointer as shown in the following code example.

extern void (*pOEMRestoreCoProcRegister) (LPBYTE);

The following code example shows the function pointer the OEM must assign during OEMInit to retrieve the address of the OEMSaveCoProcRegister function.

pOEMRestoreCoProcRegister = OEMRestoreCoProcRegister;

The function is only called when both fNKSaveCoProcReg and cbNKCoProcRegSize global variables are nonzero.

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
OEMSaveCoProcRegister
OEMInitCoProcRegisterSavedArea
cbNKCoProcRegSize
fNKSaveCoProcReg