Other versions of this page are also available for the following:
This function switches between kernel and user modes.
This function is no longer supported as of CE 6.0.
[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.
|Windows Embedded CE||Windows CE 2.10 and later|