SetKMode

Other versions of this page are also available for the following:
Windows Mobile Not SupportedWindows Embedded CE Supported
8/28/2008

This function switches between kernel and user modes.

This function is no longer supported as of CE 6.0.


BOOL SetKMode(
  BOOL fMode
);

fMode

[in] Setting to TRUE enters kernel mode. Setting to FALSE enters user mode.

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.

Only the calling thread is affected by SetKMode.

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

Headerpkfuncs.h
Librarycoredll.lib
Windows Embedded CEWindows CE 2.10 and later

Community Additions

Show: