The “Start” value in registry for my driver is 2 (Auto). Note that I
dont have any service (I mean a NT service) associated with this driver.
So I dont see see anything under
My Computer" -> Manage -> Services and applications ->services.
My driver is definitely not UP before I run the app. What does “Auto”
mean here? I thought it will automatically start the driver once the
registry keys are created.
However, once I reboot the PC, then I can see my driver loaded (within
Softice debugger) and then CreateFile also works fine.
Sanjay
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of priya priya
Sent: Wednesday, June 09, 2004 9:26 PM
To: Windows System Software Devs Interest List
Subject: ***SPAM*** Re: [ntdev] Question on CreateFile
Hi,
What is the load order in which your driver is
getting loaded?
Is it boot or auto or manual?
CreateFile call in your application will not
load the driver or go to
driver entry. CreateFile call in the application
will be mapped to
IRP_MJ_CREATE in the driver routine.The driver
should be loaded
during boot or manually. This setting should be
made in the ini or
inf file.Before running your application check
whether the driver is
up.
Right click “My Computer” -> Manage -> Services
and applications ->
services
Check whether ur driver status is started. If it
is not started ,
go to command prompt and type net start
“drivername”.Now it will go
and hit the driverentry of your driver.(if there
are breakpoints)
After this step run your application.The create
file should be called
with your win32device name(Symbolic link created
for your driver).
To view this use the DeviceTree and under ??
check whther the
symbolic name you created appears.I think if all
these are proper
when you call createfile it will map to the
IRP_MJ_CREATE of your
driver without giving any error.
Regards,
Priya
Get your Free E-mail at
http://freelancewriting.zzn.com
Get your own Web-based E-mail Service at
http://www.zzn.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@netscreen.com
To unsubscribe send a blank email to
xxxxx@lists.osr.com