Installing WDM driver ?

How can I install a driver @ run time , I have an application with 10
switch cases , I need to make use of a driver only in 1 switch , it
doesn’t makes sense to install a driver for that .

I want to install and load the driver only when it is required ,

does OpensSCManager and CreateService have some cons over installing a
driver with an inf ??

Thanks
Neer

No, OpenScManager and CreateService work for legacy drivers, but a WDM
driver is plug and play. You need to look at the DevCon source in the DDK
to see how to load a PNP driver.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“Ladkani, Neeraj” wrote in message
news:xxxxx@ntdev…
How can I install a driver @ run time , I have an application with 10
switch cases , I need to make use of a driver only in 1 switch , it
doesn’t makes sense to install a driver for that .

I want to install and load the driver only when it is required ,

does OpensSCManager and CreateService have some cons over installing a
driver with an inf ??

Thanks
Neer

You can also take a look at the DIFx API for installing drivers. The DIFx
API is part of the DIFx set of tools and is available in the WDK. You can
also download it from -
http://www.microsoft.com/whdc/driver/install/DIFxtls.mspx

“Don Burn” wrote in message news:xxxxx@ntdev…
> No, OpenScManager and CreateService work for legacy drivers, but a WDM
> driver is plug and play. You need to look at the DevCon source in the DDK
> to see how to load a PNP driver.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> http://www.windrvr.com
> Remove StopSpam from the email to reply
>
>
>
> “Ladkani, Neeraj” wrote in message
> news:xxxxx@ntdev…
> How can I install a driver @ run time , I have an application with 10
> switch cases , I need to make use of a driver only in 1 switch , it
> doesn’t makes sense to install a driver for that .
>
> I want to install and load the driver only when it is required ,
>
> does OpensSCManager and CreateService have some cons over installing a
> driver with an inf ??
>
> Thanks
> Neer
>
>
>
>
>
>

Does legacy driver support given in VISTA? Do we need to port all the
legacy drivers for VISTA ? or we can still use the same way i.e.
OpenSCManager and create service in VISTA?

Thanks and Regards
~Neer

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Wednesday, September 06, 2006 7:11 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Installing WDM driver ?

No, OpenScManager and CreateService work for legacy drivers, but a WDM
driver is plug and play. You need to look at the DevCon source in the
DDK
to see how to load a PNP driver.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“Ladkani, Neeraj” wrote in message
news:xxxxx@ntdev…
How can I install a driver @ run time , I have an application with 10
switch cases , I need to make use of a driver only in 1 switch , it
doesn’t makes sense to install a driver for that .

I want to install and load the driver only when it is required ,

does OpensSCManager and CreateService have some cons over installing a
driver with an inf ??

Thanks
Neer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Ladkani, Neeraj wrote:

Does legacy driver support given in VISTA? Do we need to port all the
legacy drivers for VISTA ? or we can still use the same way i.e.
OpenSCManager and create service in VISTA?

No driver models have been removed in Vista. In fact, no driver model
has ever been removed in the history of Windows.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

You can still run legacy drivers on Vista. You cannot install WDM/PnP
drivers using the SCM though. This requirement is not new, you were
never able to use the SCM to install a WDM/PnP driver.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ladkani, Neeraj
Sent: Wednesday, September 06, 2006 11:31 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Installing WDM driver ?

Does legacy driver support given in VISTA? Do we need to port all the
legacy drivers for VISTA ? or we can still use the same way i.e.
OpenSCManager and create service in VISTA?

Thanks and Regards
~Neer

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Wednesday, September 06, 2006 7:11 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Installing WDM driver ?

No, OpenScManager and CreateService work for legacy drivers, but a WDM
driver is plug and play. You need to look at the DevCon source in the
DDK
to see how to load a PNP driver.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“Ladkani, Neeraj” wrote in message
news:xxxxx@ntdev…
How can I install a driver @ run time , I have an application with 10
switch cases , I need to make use of a driver only in 1 switch , it
doesn’t makes sense to install a driver for that .

I want to install and load the driver only when it is required ,

does OpensSCManager and CreateService have some cons over installing a
driver with an inf ??

Thanks
Neer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

>>No driver models have been removed in Vista. In fact, no driver model

>has ever been removed in the history of Windows.

Four words: Kernel mode printer drivers (deprecated in Win2K, no longer logo’d in XP, and unloadable in Vista- by design).

xxxxx@microsoft.com wrote:

>>No driver models have been removed in Vista. In fact, no driver model
>>has ever been removed in the history of Windows.
>>
>>

Four words: Kernel mode printer drivers (deprecated in Win2K, no longer logo’d in XP, and unloadable in Vista- by design).

I stand corrected. Kernel printer drivers have a fascinating circular
history:

NT 3: Not possible
NT 4: Required
2000: Deprecated
XP: Not logo’d
Vista: Not possible


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

> -----Original Message-----

From: xxxxx@lists.osr.com [mailto:bounce-261364-
xxxxx@lists.osr.com] On Behalf Of Ladkani, Neeraj
Sent: Wednesday, September 06, 2006 2:31 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Installing WDM driver ?

Does legacy driver support given in VISTA? Do we need to port all the
legacy drivers for VISTA ? or we can still use the same way i.e.
OpenSCManager and create service in VISTA?

In general, all Windows NT-based OS versions support “legacy” NT device
drivers.

However, not all pre-Vista kernel-mode APIs are supported on Vista.

The first thing that you should do is see if your driver can be built under
the Vista build environment. If it can be built under Vista build
environment, then you are probably in good shape.

Good luck,

Thomas F. Divine, Windows DDK MVP
http://www.pcausa.com

Thanks and Regards
~Neer

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Wednesday, September 06, 2006 7:11 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Installing WDM driver ?

No, OpenScManager and CreateService work for legacy drivers, but a WDM
driver is plug and play. You need to look at the DevCon source in the
DDK
to see how to load a PNP driver.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“Ladkani, Neeraj” wrote in message
> news:xxxxx@ntdev…
> How can I install a driver @ run time , I have an application with 10
> switch cases , I need to make use of a driver only in 1 switch , it
> doesn’t makes sense to install a driver for that .
>
> I want to install and load the driver only when it is required ,
>
> does OpensSCManager and CreateService have some cons over installing a
> driver with an inf ??
>
> Thanks
> Neer
>
>
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer

I woulnd’t go that far. I think it’s safe to say that VXD support is
gone post Windows ME. (That is a A Good Thing!)

Beverly

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Wednesday, September 06, 2006 5:46 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Installing WDM driver ?

Ladkani, Neeraj wrote:

Does legacy driver support given in VISTA? Do we need to port all the
legacy drivers for VISTA ? or we can still use the same way i.e.
OpenSCManager and create service in VISTA?

No driver models have been removed in Vista. In fact, no driver model
has ever been removed in the history of Windows.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Not quite :slight_smile:

Consider the massive changes the video driver architectures throughout the history of Windows… continuing to this day with the LHDDM.

Another example of a dead driver architecture: To the best of my knowledge you can no longer write NDIS full MAC drivers (those having been replaced by NDIS Miniports).

Peter
OSR

VXDs were never supported on the NT based OS’s so I don’t know if it can
count as a driver model which is no longer supported…

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Brown, Beverly
Sent: Thursday, September 07, 2006 6:44 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Installing WDM driver ?

I woulnd’t go that far. I think it’s safe to say that VXD support is
gone post Windows ME. (That is a A Good Thing!)

Beverly

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Wednesday, September 06, 2006 5:46 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Installing WDM driver ?

Ladkani, Neeraj wrote:

Does legacy driver support given in VISTA? Do we need to port all the
legacy drivers for VISTA ? or we can still use the same way i.e.
OpenSCManager and create service in VISTA?

No driver models have been removed in Vista. In fact, no driver model
has ever been removed in the history of Windows.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Brown, Beverly wrote:

I woulnd’t go that far. I think it’s safe to say that VXD support is
gone post Windows ME. (That is a A Good Thing!)

Well, that’s a semantics issue. In the line of 16-bit systems, starting
with Windows 386 and ending with Windows Me, no driver model was ever
removed. In the line of 32-bit systems, starting with Windows NT 3.1
and continuing through Vista, no driver model was ever removed (although
some driver models migrated from user to kernel and back). The VxD
model was not really “removed”, it just faded away because there was no
follow-on to Windows Me.

The VxD world is a fascinating one. It is essentially an entirely
separate operating system, for which Windows just happens to be one of
the tasks. VxDs were fun to write.

One of my favorite anto-Microsoft images was the one from 1999 or so
that pointed out that Microsoft’s Windows offerings were CE, ME, and
NT: Windows CEMENT, thick as a brick.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

He didn’t specify NT based - he said Windows.

Beverly

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Thursday, September 07, 2006 12:47 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Installing WDM driver ?

VXDs were never supported on the NT based OS’s so I don’t know if it can
count as a driver model which is no longer supported…

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Brown, Beverly
Sent: Thursday, September 07, 2006 6:44 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Installing WDM driver ?

I woulnd’t go that far. I think it’s safe to say that VXD support is
gone post Windows ME. (That is a A Good Thing!)

Beverly

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Wednesday, September 06, 2006 5:46 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Installing WDM driver ?

Ladkani, Neeraj wrote:

Does legacy driver support given in VISTA? Do we need to port all the
legacy drivers for VISTA ? or we can still use the same way i.e.
OpenSCManager and create service in VISTA?

No driver models have been removed in Vista. In fact, no driver model
has ever been removed in the history of Windows.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

xxxxx@osr.com wrote:

Not quite :slight_smile:

Consider the massive changes the video driver architectures throughout the history of Windows… continuing to this day with the LHDDM.

I disagree. Although the model migrated from user mode to kernel mode
a decade ago, a driver writer who had been comfortable writing Windows
NT 3.1 display drivers would have no trouble at all maintaining an XP
display driver. There are a few new entry points, and you have the
addition of D3D, but the MODEL hasn’t changed. You still have a display
driver with entry points like DrvEnablePDEV and DrvBitBlt, and a
miniport handling ioctls for the hardware access.

I will concede that LDDM is an entirely new beast, but old-style display
drivers still work. The old model has not been removed. Yet.

Another example of a dead driver architecture: To the best of my knowledge you can no longer write NDIS full MAC drivers (those having been replaced by NDIS Miniports).

I don’t know NDIS well enough to come up with a ego-deflating witty
response…


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.