How to Load a Driver on Windows 2000

Hello ,
How can I load a driver programatically ,so that I can use CreateFile on
it ??

Thanx in advance

you can do it in different ways. I’ve just started working on drivers so
heres my experience.

  1. Using an inf file
    I found this rather complicated for a start at driver programming.

  2. Use an ini file (See newcomer and dekker) and regini to make registry
    entries. Needs a reboot.

  3. Use CreateService, does the registry entry for you. Just be sure you have
    set the unicode flag (a must for w2k drivers. Check out the other service
    functions from msdn

Rajeev

From: “Krishna”
>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] How to Load a Driver on Windows 2000
>Date: Sat, 30 Mar 2002 07:44:04 -0500
>
>Hello ,
>How can I load a driver programatically ,so that I can use CreateFile on
>it ??
>
>Thanx in advance
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to %%email.unsub%%

If it were done when 'tis done, then 'twere well it were done slowly
…but vigorously

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

How can I load a filter driver programatically? So that it can
automatically do the filter work each time the windows start?

For non-PnP drivers, use StartService.
PnP ones are loaded automatically if the device is enumerated and enabled. Use SetupDi functions to enable/disable the device.

Max

----- Original Message -----
From: “Krishna”
To: “NT Developers Interest List”
Sent: Saturday, March 30, 2002 3:44 PM
Subject: [ntdev] How to Load a Driver on Windows 2000

> Hello ,
> How can I load a driver programatically ,so that I can use CreateFile on
> it ??
>
> Thanx in advance
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>

Hi,
I mailed about this earlier, I may have missed the reply due to hotmail
problems. When I call StartService for non-pnp drivers, the second time
(having stopped the driver previously) I get file not found error. Can
anyone tell me why. I’m forced to do a reboot because of this.

Rajeev

From: “Maxim S. Shatskih”
>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] Re: How to Load a Driver on Windows 2000
>Date: Sun, 31 Mar 2002 01:01:54 +0300
>
>For non-PnP drivers, use StartService.
>PnP ones are loaded automatically if the device is enumerated and enabled.
>Use SetupDi functions to enable/disable the device.
>
> Max
>
>----- Original Message -----
>From: “Krishna”
>To: “NT Developers Interest List”
>Sent: Saturday, March 30, 2002 3:44 PM
>Subject: [ntdev] How to Load a Driver on Windows 2000
>
>
> > Hello ,
> > How can I load a driver programatically ,so that I can use CreateFile on
> > it ??
> >
> > Thanx in advance
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to %%email.unsub%%
> >
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to %%email.unsub%%

If it were done when 'tis done, then 'twere well it were done slowly
…but vigorously

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com