Re: whether a driver is running in user- or kernel- mode
- From: "Pavel A." <pavel_a@xxxxxxxxxxxxxxx>
- Date: Wed, 11 Jun 2008 22:55:11 +0300
"Ben Voigt [C++ MVP]" <rbv@xxxxxxxxxxxxx> wrote in message news:OWPERn#yIHA.4492@xxxxxxxxxxxxxxxxxxxxxxx
Pavel A. wrote:The MSDN link http://msdn.microsoft.com/en-us/library/ms801104.aspx
says that a kernel mode DLL is linked with win32k.lib and a usermode
one - with gdi32.lib.
I guess you probably meant kernel32.lib for user-mode applications and libraries. You can definitely have user-mode libraries without GDI.
Correct, but the build instructions at the above link, say that usermode DLLs of this kind should link with gdi32.
--PA
.
So this should be visible somewhere in dependencies.
Regards,
--PA
"ssylee" <ssylee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:98496B45-ABE6-4A74-94E7-7B22507C712D@xxxxxxxxxxxxxxxx
Pavel,
I've viewed the DLL with Dependency Walker, but I can't find anything
relevant to user-mode or kernel-mode DLLs or libraries that it's
being linked
to. Which other property I should specifiically look for? Thanks.
"Pavel A." wrote:
Just inspect your DLL with a dependency viewer.
If it is linked to the user mode stuff (as described in the msdn
link in your question),
it does run in usermode.
Regards,
--PA
"ssylee" <ssylee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:17CCD79B-E993-4D2D-8BF6-AC26B4FF5F0F@xxxxxxxxxxxxxxxx
Which particular output should I be looking at to tell whether
it's in user-
or kernel-mode? I'm having trouble regarding this area. Would that
be observing the behaviour on DrvQueryInfo callbacks?
"J" wrote:
On Jun 9, 10:36 pm, ssylee <ssy...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
I have taken my efforts to ensure that the driver that I'm
looking at
is
running in user-mode as shown
inhttp://msdn.microsoft.com/en-us/library/ms801104.aspx. However,
I'm
still
puzzled from its behaviour of whether it is indeed running in
user-mode. Is
there any specific way (perhaps with a debugger) to tell whether
it's
running
in user-mode or kernel-mode?
You can use WinDbg in verbose mode.
- Follow-Ups:
- Re: whether a driver is running in user- or kernel- mode
- From: Ben Voigt [C++ MVP]
- Re: whether a driver is running in user- or kernel- mode
- References:
- Re: whether a driver is running in user- or kernel- mode
- From: J
- Re: whether a driver is running in user- or kernel- mode
- From: ssylee
- Re: whether a driver is running in user- or kernel- mode
- From: Pavel A.
- Re: whether a driver is running in user- or kernel- mode
- From: Pavel A.
- Re: whether a driver is running in user- or kernel- mode
- From: Ben Voigt [C++ MVP]
- Re: whether a driver is running in user- or kernel- mode
- Prev by Date: Re: Data Packet Being Dropped by Native IM
- Next by Date: Re: whether a driver is running in user- or kernel- mode
- Previous by thread: Re: whether a driver is running in user- or kernel- mode
- Next by thread: Re: whether a driver is running in user- or kernel- mode
- Index(es):
Relevant Pages
|