Hi all,
Let’s say I want to access hard drive or print anything onto display from my kernel driver? How to determine that a particular device is ready and I can work with it?
Is it enough to put my driver appropriately in the boot load groups?
Thank you,
Roman
Roman Kudinov wrote:
Hi all,
Let’s say I want to access hard drive or print anything onto display
from my kernel driver? How to determine that a particular device is
ready and I can work with it?
Is it enough to put my driver appropriately in the boot load groups?
Thank you,
Roman
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Put your driver in the system load group. This will save you from a lot
of trouble.
At least you can be sure that all ZwXXX functions for file handle works
fine.
I am not sure about printing.
Just remember that all file handle functions are for PASSIVE_LEVEL. So
if you use
any spin locks restore the IRQL at PASSIVE_LEVEL and then access any files.
Oh, file handles are valid only in the process that created them. So
forget about creating a file handle at driver load
and use it later on from dispatch I/O routines.
Thats all.
I hope i helped.
Yes, it is enough. You can also have a helper applet like a tray icon which will ping the driver with IOCTLs and show error boxes if the driver is not detected.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: Roman Kudinov
Newsgroups: ntdev
To: Windows System Software Devs Interest List
Sent: Friday, August 12, 2005 8:04 PM
Subject: [ntdev] how to make sure that a particular driver is loaded and device is initialized?
Hi all,
Let’s say I want to access hard drive or print anything onto display from my kernel driver? How to determine that a particular device is ready and I can work with it?
Is it enough to put my driver appropriately in the boot load groups?
Thank you,
Roman
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com