flat assembler
Message board for the users of flat assembler.

Index > Windows > Device Driver Programming Questions.

Author
Thread Post new topic Reply to topic
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 15 Nov 2010, 20:51
Hello everyone! I have to ask some questions about how to program device driver programs. I saw many examples here but I don't understand much of them.. I have some questions here hope someone will reply and sorry for dumb questions..
#1 How does Device Driver work ?
#2 How to run .SYS file ?
#3 Can someone write kernel mode driver that will just pop up MessageBox when loaded and how to load it ?
#4 Simple code if possible.
I'm just interested whats difference between kernel mode and user mode ? Why kernel mode drivers can't be removed from usermode ? Just some examples please. Rolling Eyes Thanks.
Post 15 Nov 2010, 20:51
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 15 Nov 2010, 22:04
Overflowz,

Those questions aren't outright dumb, yet you have to understand that explanation requires you to know some basics. Have you read some books about Windows architecture already? "Windows Internals", "Inside Microsoft Windows", anything about Windows I/O model?

Some short answers:
#1: Quite efficiently. Wink
#2: It is supposed to be loaded by OS.
#3: Someone can, what you will do with all those driver/device objects, IRPs and such in that source?
#4: I wish I can fly with a simple device (with simple driver, with simple code) too.

If you're really interested, there are tutorials, articles and kits.
Post 15 Nov 2010, 22:04
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 15 Nov 2010, 22:22
Should I read those books first ?
Post 15 Nov 2010, 22:22
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 15 Nov 2010, 22:36
Overflowz,

Four-F wrote good series of articles at wasm.ru about this. While those books aren't absolute necessity, you may find them informative.
Post 15 Nov 2010, 22:36
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4153
Location: vpcmpistri
bitRAKE 16 Nov 2010, 03:06
Try http://www.osronline.com/ as well as Four-F series (very good).
Post 16 Nov 2010, 03:06
View user's profile Send private message Visit poster's website Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 16 Nov 2010, 10:14
Okay thanks. I'll read that Smile
Post 16 Nov 2010, 10:14
View user's profile Send private message Reply with quote
Feryno



Joined: 23 Mar 2005
Posts: 514
Location: Czech republic, Slovak republic
Feryno 18 Nov 2010, 08:49
to run driver you have 2 choices
- let it to be loaded at boot (loaded through registry key)
- load it on demand (requires calling only about 5 APIs, surely not more than 10, requires also admin privileges) - download samples from FASM download section, also scan forum for some samples if it should be for 32 bit
Post 18 Nov 2010, 08:49
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.