It's the mode of the processor before the last system call.
So user-mode app calls NtOpenFile, previous mode is UserMode.
Kernel thread (or user-thread running in kernel-mode) calls NtOpenFile, previous mode becomes KernelMode.
-p
-----Original Message-----
From: ijor@nospam.nospam
Posted At: Thursday, August 11, 2005 8:20 AM
Posted To: microsoft.public.development.device.drivers
Conversation: Assert being the highest-level driver
Subject: Re: Assert being the highest-level driver
"Doron Holan [MS]" wrote:
> you can't reliably do this. you have to take it on faith that if the
> design of your stack is that you are the highest level driver, you are the highest.
I see, thanks.
But just for my knowledge, what is exactly the meaning of "previous" in ExGetPreviousMode? The concept is a bit loose in this context.