SetKMode (Windows CE 5.0)

Send Feedback

This function allows an application to switch between kernel and user modes.

Note   Only the calling thread is affected by SetKMode.

BOOL SetKMode( BOOL fMode );

Parameters

  • fMode
    [in] Setting to TRUE enters kernel mode; setting to FALSE enters user mode.

Return Values

This function returns the mode prior to the current call to SetKMode. TRUE if the previous mode was kernel mode; FALSE if the previous mode was user mode.

Remarks

To allow nested operation, you can set fMode to the value returned from an initial call to SetKMode, in order to return to the original state.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Pkfuncs.h.
Link Library: Coredll.lib.

See Also

dwOEMCleanPages | Trusted APIs

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.