Re: difference between driver and services?
- From: "Kerem Gümrükcü" <kareem114@xxxxxxxxxxx>
- Date: Fri, 2 Nov 2007 16:13:31 +0100
"msnews.microsoft.com" <wuzh1230@xxxxxxx> schrieb im Newsbeitrag
news:%23139x6VHIHA.1168@xxxxxxxxxxxxxxxxxxxxxxx
the difference really puzzle me.
teach me some kownledge about the OS design.
best_regards!
Hi Stranger,
first at all: Please use your real name here!
The main difference is, that windows services run in
user mode (ring3) and drivers run in kernel-mode(ring0).
Exception here are some sort of user mode drivers like
printer/spooler drivers and some other user mode drivers.
vista has some (major) changes on drivers architecture, so see
some external references on main differences e.g between
windows vista est par example windows xp...
Also important to know: Drivers in Kernel Mode can execute
any instruction the cpu has, with no limitation, where user mode
drivers can only execute instructions that can be executed in
ring3 and/or instructions only the operating system allows. A
kernel mode river can access the complete systems memory
and has unlimited access to the hardware (if bios does not
protect some hardware for any reason) or another driver has
exclusive access to it. If a kernel mode driver fails, it will render
in most of the cases your complete operating envornment for the
running session useless und you will get the well know famous
blue screen of death (seen in windows) or anther screen, e.g
red in Linux (in a early version of windows the bluse screen was red!)
A user mode driver runs inside a protected environment and if it fails
it just will affect the process itself and its running threads and
environment.So the process will be terminated. But sometimes the
faliure of a usermode process also affects the complete os. If someone
here says impossible i want tell that much, that years ago i found a way
to make the complete os crash (BSOD) with manipulating a windows
message procedure and something with its hook chain from inside of
Visual Basic!!! Code and it will raise a BSOD. Also you will get a
BSOD when important services or processes for the os fail for
whatever reason. The list is long, but not regarding your question!
See here:
[Windows Services]
http://msdn2.microsoft.com/en-us/library/ms685141.aspx
[Generic Driver Description]
http://en.wikipedia.org/wiki/Device_driver
The most Complete Reference and Information about Windows
Drivers: http://www.microsoft.com/whdc/default.mspx
There are TONS of information on drivers out there in the www.
Just do a google search or if you want a nice guidance with charming
appearance try this: http://www.msdewey.com/
Hope this will be a guide for you,...
Cheers,...
Kerem
--
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
kerem.g@xxxxxxxx
Best Quote: "Ain't nobody a badass with a double dose
of rock salt...", Kill Bill Vol.2
Latest Open-Source Projects: http://entwicklung.junetz.de
Sign my guestbook: http://entwicklung.junetz.de/guestbook/
-----------------------
"This reply is provided as is, without warranty express or implied."
.
- References:
- difference between driver and services?
- From: msnews.microsoft.com
- difference between driver and services?
- Prev by Date: Re: difference between driver and services?
- Next by Date: how i can change the page size
- Previous by thread: Re: difference between driver and services?
- Next by thread: Re: difference between driver and services?
- Index(es):
Relevant Pages
|