Welcome to WinForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Device Driver Installation Detection [newbie]

 
   Windows XP (Home) -> XP Device Driver RSS
Next:  Is there a TV tuner which gets over 150 channels?  
Author Message
LEMAIRE Mathieu

External


Since: Jan 04, 2007
Posts: 4



(Msg. 1) Posted: Thu Jan 04, 2007 11:18 am
Post subject: Device Driver Installation Detection [newbie]
Archived from groups: microsoft>public>windowsxp>device_driver>dev (more info?)

Hie,

I want to detect if a driver is installed on my PC using winAPI from a
C++ app. What is the simplest way to do that ?
Which GUID do I have to use (and where to find it ?), I only have my
device pid + vid eventually...

Sorry if my question seems stupid, I tried to understand how devices are
identified in MSDN doc, but it all seemed chinese to me :'( ...

Thank you,

Mathieu LEMAIRE

 >> Stay informed about: Device Driver Installation Detection [newbie] 
Back to top
Login to vote
Doron Holan MS1

External


Since: Jan 28, 2004
Posts: 15



(Msg. 2) Posted: Thu Jan 04, 2007 9:34 pm
Post subject: Re: Device Driver Installation Detection [newbie] [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

the installation of the driver itself is not usually interesting, what is
interesting is the pnp devices it controls. anyways, you can use the
service control manager (SCM) to query for the service by name and get its
state if present. this will not tell you if it is loaded and running
though.

what are you going to do once you have detected the driver? open one of its
devices?

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"LEMAIRE Mathieu" <lemairm6.TakeThisOut@cti.ecp.fr> wrote in message
news:enj6hk$iai$1@guepard.ecp.fr...
> Hie,
>
> I want to detect if a driver is installed on my PC using winAPI from a C++
> app. What is the simplest way to do that ?
> Which GUID do I have to use (and where to find it ?), I only have my
> device pid + vid eventually...
>
> Sorry if my question seems stupid, I tried to understand how devices are
> identified in MSDN doc, but it all seemed chinese to me :'( ...
>
> Thank you,
>
> Mathieu LEMAIRE

 >> Stay informed about: Device Driver Installation Detection [newbie] 
Back to top
Login to vote
LEMAIRE Mathieu

External


Since: Jan 04, 2007
Posts: 4



(Msg. 3) Posted: Fri Jan 05, 2007 3:15 am
Post subject: Re: Device Driver Installation Detection [newbie] [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> the installation of the driver itself is not usually interesting, what is
> interesting is the pnp devices it controls. anyways, you can use the
> service control manager (SCM) to query for the service by name and get its
> state if present. this will not tell you if it is loaded and running
> though.

I want to detect whther a USB driver is installed or not. Does every USB
driver register services ?

> what are you going to do once you have detected the driver? open one of its
> devices?

OK, what I want to do is :
given descriptors of device (pid, vid....), check the installation
status of the driver (or compatible ones) and install the driver if none
is installed.

How is that possible with the windows api ?

Thank you,

LEMAIRE Mathieu
 >> Stay informed about: Device Driver Installation Detection [newbie] 
Back to top
Login to vote
Doron Holan MS1

External


Since: Jan 28, 2004
Posts: 15



(Msg. 4) Posted: Sun Jan 07, 2007 7:05 pm
Post subject: Re: Device Driver Installation Detection [newbie] [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

this doesn't make much sense. instead you can iterate over the device tree,
find all the devices which have a problem code (no drivers installed), check
to see if the enumerator is "USB" and then do something about it. You can
get the descriptors from user mode, see usbview for details...

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"LEMAIRE Mathieu" <lemairm6 RemoveThis @cti.ecp.fr> wrote in message
news:enl0gm$7f9$1@guepard.ecp.fr...
>> the installation of the driver itself is not usually interesting, what is
>> interesting is the pnp devices it controls. anyways, you can use the
>> service control manager (SCM) to query for the service by name and get
>> its state if present. this will not tell you if it is loaded and running
>> though.
>
> I want to detect whther a USB driver is installed or not. Does every USB
> driver register services ?
>
>> what are you going to do once you have detected the driver? open one of
>> its devices?
>
> OK, what I want to do is :
> given descriptors of device (pid, vid....), check the installation status
> of the driver (or compatible ones) and install the driver if none is
> installed.
>
> How is that possible with the windows api ?
>
> Thank you,
>
> LEMAIRE Mathieu
 >> Stay informed about: Device Driver Installation Detection [newbie] 
Back to top
Login to vote
LEMAIRE Mathieu

External


Since: Jan 04, 2007
Posts: 4



(Msg. 5) Posted: Mon Jan 08, 2007 4:16 am
Post subject: Re: Device Driver Installation Detection [newbie] [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> this doesn't make much sense. instead you can iterate over the device tree,
> find all the devices which have a problem code (no drivers installed), check
> to see if the enumerator is "USB" and then do something about it. You can
> get the descriptors from user mode, see usbview for details...

No, I can't connect the device. I will go deeper in details : It's a
project I do for my school - i want to do a hardware interface between a
device and the host that :
- detects whether the device is installed (without connecting the device
itself - to make it the least intrusive)
- install driver if necessary (harware interface ~= mass storage)
- and only then connect the device

Any suggestion to do the first part ?
Or any commentary/advice on the project ?

Thank you very much !

--
Mathieu LEMAIRE
 >> Stay informed about: Device Driver Installation Detection [newbie] 
Back to top
Login to vote
Doron Holan MS1

External


Since: Jan 28, 2004
Posts: 15



(Msg. 6) Posted: Mon Jan 08, 2007 4:16 am
Post subject: Re: Device Driver Installation Detection [newbie] [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

why not report yourself as the std usb mass storage interface and just
forget about the manual installation aspect

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"LEMAIRE Mathieu" <lemairm6 RemoveThis @cti.ecp.fr> wrote in message
news:ent1fr$k7o$1@guepard.ecp.fr...
>> this doesn't make much sense. instead you can iterate over the device
>> tree, find all the devices which have a problem code (no drivers
>> installed), check to see if the enumerator is "USB" and then do something
>> about it. You can get the descriptors from user mode, see usbview for
>> details...
>
> No, I can't connect the device. I will go deeper in details : It's a
> project I do for my school - i want to do a hardware interface between a
> device and the host that :
> - detects whether the device is installed (without connecting the device
> itself - to make it the least intrusive)
> - install driver if necessary (harware interface ~= mass storage)
> - and only then connect the device
>
> Any suggestion to do the first part ?
> Or any commentary/advice on the project ?
>
> Thank you very much !
>
> --
> Mathieu LEMAIRE
 >> Stay informed about: Device Driver Installation Detection [newbie] 
Back to top
Login to vote
LEMAIRE Mathieu

External


Since: Jan 04, 2007
Posts: 4



(Msg. 7) Posted: Wed Jan 10, 2007 11:18 am
Post subject: Re: Device Driver Installation Detection [newbie] [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> why not report yourself as the std usb mass storage interface and just
> forget about the manual installation aspect

?? I don't understand

I have a .inf describing my device driver and I want to check if it's
already installed or preinstalled... Is it that complicated to do this
in with winApi ??

Mathieu LEMAIRE

--

>> >> this doesn't make much sense. instead you can iterate over the
device
>> >> tree, find all the devices which have a problem code (no drivers
>> >> installed), check to see if the enumerator is "USB" and then do
something
>> >> about it. You can get the descriptors from user mode, see
usbview for
>> >> details...
> >
> > No, I can't connect the device. I will go deeper in details : It's a
> > project I do for my school - i want to do a hardware interface
between a
> > device and the host that :
> > - detects whether the device is installed (without connecting the
device
> > itself - to make it the least intrusive)
> > - install driver if necessary (harware interface ~= mass storage)
> > - and only then connect the device
> >
> > Any suggestion to do the first part ?
> > Or any commentary/advice on the project ?
> >
> > Thank you very much !
 >> Stay informed about: Device Driver Installation Detection [newbie] 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Device Driver won't function in XP Pro - I originally posted this at microsoft.public.windowsxp.hardware ---------- Ok, I've tried everything I can think of and can't figure out a resolution for this one: I've got a Compaq R3000 laptop (AMD64 3700+, 1GB PC2700, NVIDIA4 440 Go, latest BIOS)..

Trouble installing device driver - Hi, I'm actually running Windows 2000 (can't find that newsgroup!) and am trying to install a USB->Parallel cable converter to get an HP LaerJet printer recognized. However, when I open up the CD that came with the cable, it contains the following f...

Windows cannot initialize the device driver for this hardwar - Hi,I have a big,big problem and I really hope somebody can help me.I have bought a Packard Bell notebook in Denmark and the softwear pack was in danish.When I install the english XP home prof.,I lost some of my drivers.From the Backard Bell homepage I..

Simulating keypresses by creating a virtual device driver - Hello, I am in process of creating a motion detection method for controlling computer games. I am creating a program that detects user movements using a Vicon tracking system, analysing the movements and outputting keystrokes like a normal keyboard..

Client mode device driver: how to make system recognize it? - Hello. I wrote a user-mode (as opposed to kernel-mode) device driver which control my network devices through TCP/winsock, and which actually is an exe-task (as MSDN teach us). How to make system (WinXP) recognize it as a driver? i.e. how to manage it..
   Windows XP (Home) -> XP Device Driver All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
  Windows XP
 Windows Vista!
 Win 2000/NT/98/ME


[ Contact us | Terms of Service/Privacy Policy ]