Share via


OEMSaveCoProcRegister (Windows CE 5.0)

Send Feedback

This function is called by the kernel to save the platform-specific debug registers when a thread switch occurs. The same area is passed to the OEMRestoreCoProcRegister function when the thread is scheduled again.

void OEMSaveCoProcRegister(LPBYTE pArea);

Parameters

  • pArea
    [out] Pointer to a memory buffer used to store the co-processor registers.

Return Values

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 the function pointer, as shown in the following code example.

extern void (* pOEMSaveCoProcRegister)(LPBYTE);

During OEMInit, the OEM must assign the function pointer the address of their OEMSaveCoProcRegister function, as shown in the following code example.

pOEMSaveCoProcRegister = OEMSaveCoProcRegister;

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

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Not applicable.
Link Library: Nk.lib.

See Also

OEMRestoreCoProcRegister | OEMInitCoProcRegisterSavedArea | cbNKCoProcRegSize | fNKSaveCoProcReg

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.