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

Steps for an application to query a driver's version

 
   Windows XP Arc1 (Home) -> Device Driver RSS
Next:  Desktop Icons are STUCK  
Author Message
Polaris

External


Since: Nov 13, 2003
Posts: 16



(Msg. 1) Posted: Thu Sep 08, 2005 9:44 pm
Post subject: Steps for an application to query a driver's version
Archived from groups: microsoft>public>development>device>drivers, others (more info?)

Hi:

I'm new to driver development, just wonder what should be the steps to
implement this: On WinXP, a Windows application needs to query the version
of a running driver (a network device driver). What are the steps to
implement in the drver side (IOCTL?) and what needs to be done in the
application side? Just roughly steps should be good enough for me to start.

Thanks in Advance !
Polaris

 >> Stay informed about: Steps for an application to query a driver's version 
Back to top
Login to vote
Stephan Wolf [MVP]

External


Since: Feb 22, 2005
Posts: 3



(Msg. 2) Posted: Fri Sep 09, 2005 2:30 am
Post subject: Re: Steps for an application to query a driver's version [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In order to get the driver version from an already started (running)
network interface card (NIC) driver, query its
OID_GEN_VENDOR_DRIVER_VERSION. This can be done in several ways, e.g.
via IOCTL or WMI, see

http://www.ndis.com/faq/QA10290101.htm

http://msdn.microsoft.com/library/
-> "Win32 and COM Development"
-> "Driver Development Kit"
-> "Network Devices and Protocols"

>From here see both:

-> "Design Guide"
-> "Miniport Drivers"
-> "Obtaining and Setting Miniport Driver Information and NDIS
Support for WMI"
-> "NDIS Support for WMI"

...and:

-> "Reference"
-> "NDIS Objects"
-> "General Objects"
-> "General Operational Characteristics"
-> "OID_GEN_VENDOR_DRIVER_VERSION"

Stephan
---
Polaris wrote:
> Hi:
>
> I'm new to driver development, just wonder what should be the steps to
> implement this: On WinXP, a Windows application needs to query the version
> of a running driver (a network device driver). What are the steps to
> implement in the drver side (IOCTL?) and what needs to be done in the
> application side? Just roughly steps should be good enough for me to start.
>
> Thanks in Advance !
> Polaris

 >> Stay informed about: Steps for an application to query a driver's version 
Back to top
Login to vote
Robert Marquardt

External


Since: Sep 09, 2005
Posts: 1



(Msg. 3) Posted: Fri Sep 09, 2005 3:15 am
Post subject: Re: Steps for an application to query a driver's version [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Polaris wrote:

> Hi:
>
> I'm new to driver development, just wonder what should be the steps to
> implement this: On WinXP, a Windows application needs to query the version
> of a running driver (a network device driver). What are the steps to
> implement in the drver side (IOCTL?) and what needs to be done in the
> application side? Just roughly steps should be good enough for me to start.
>
> Thanks in Advance !
> Polaris

A WDM driver is simply a kernel DLL. Read the version information of the
driver just as you would do it for a user space DLL.
 >> Stay informed about: Steps for an application to query a driver's version 
Back to top
Login to vote
Polaris

External


Since: Nov 13, 2003
Posts: 16



(Msg. 4) Posted: Fri Sep 09, 2005 3:15 am
Post subject: Re: Steps for an application to query a driver's version [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

but how can a user mode application directly "talk" with kernel mode .sys
driver ?

"Robert Marquardt" <marquardt.DeleteThis@codemercs.com> wrote in message
news:%23S3JLaQtFHA.236@TK2MSFTNGP11.phx.gbl...
> Polaris wrote:
>
>> Hi:
>>
>> I'm new to driver development, just wonder what should be the steps to
>> implement this: On WinXP, a Windows application needs to query the
>> version of a running driver (a network device driver). What are the steps
>> to implement in the drver side (IOCTL?) and what needs to be done in the
>> application side? Just roughly steps should be good enough for me to
>> start.
>>
>> Thanks in Advance !
>> Polaris
>
> A WDM driver is simply a kernel DLL. Read the version information of the
> driver just as you would do it for a user space DLL.
 >> Stay informed about: Steps for an application to query a driver's version 
Back to top
Login to vote
Soumik Sarkar

External


Since: Sep 09, 2005
Posts: 1



(Msg. 5) Posted: Fri Sep 09, 2005 4:03 pm
Post subject: Re: Steps for an application to query a driver's version [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You don't have to "talk" to the driver. Look at the GetFileVersionInfo,
GetFileVersionInfoSize and VerQueryValue functions in the Win32 SDK.

Soumik.


On Thu, 08 Sep 2005 23:28:35 -0700, Polaris <etpolaris.RemoveThis@hotmail.com> wrote:

> but how can a user mode application directly "talk" with kernel mode .sys
> driver ?
>
> "Robert Marquardt" <marquardt.RemoveThis@codemercs.com> wrote in message
> news:%23S3JLaQtFHA.236@TK2MSFTNGP11.phx.gbl...
>> Polaris wrote:
>>
>>> Hi:
>>>
>>> I'm new to driver development, just wonder what should be the steps to
>>> implement this: On WinXP, a Windows application needs to query the
>>> version of a running driver (a network device driver). What are the
>>> steps
>>> to implement in the drver side (IOCTL?) and what needs to be done in
>>> the
>>> application side? Just roughly steps should be good enough for me to
>>> start.
>>>
>>> Thanks in Advance !
>>> Polaris
>>
>> A WDM driver is simply a kernel DLL. Read the version information of the
>> driver just as you would do it for a user space DLL.
>
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
 >> Stay informed about: Steps for an application to query a driver's version 
Back to top
Login to vote
Polaris

External


Since: Nov 13, 2003
Posts: 16



(Msg. 6) Posted: Fri Sep 09, 2005 11:24 pm
Post subject: Re: Steps for an application to query a driver's version [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I think that does not guarantee to get the version of the running (loaded)
driver.

"Soumik Sarkar" <soumikUNDERSCOREsarkarATyahooDOTcom> wrote in message
news:op.swuybhkpiee6hd@soumik-shuttle.zonelabs.com...
> You don't have to "talk" to the driver. Look at the GetFileVersionInfo,
> GetFileVersionInfoSize and VerQueryValue functions in the Win32 SDK.
>
> Soumik.
>
>
> On Thu, 08 Sep 2005 23:28:35 -0700, Polaris <etpolaris.TakeThisOut@hotmail.com> wrote:
>
>> but how can a user mode application directly "talk" with kernel mode .sys
>> driver ?
>>
>> "Robert Marquardt" <marquardt.TakeThisOut@codemercs.com> wrote in message
>> news:%23S3JLaQtFHA.236@TK2MSFTNGP11.phx.gbl...
>>> Polaris wrote:
>>>
>>>> Hi:
>>>>
>>>> I'm new to driver development, just wonder what should be the steps to
>>>> implement this: On WinXP, a Windows application needs to query the
>>>> version of a running driver (a network device driver). What are the
>>>> steps
>>>> to implement in the drver side (IOCTL?) and what needs to be done in
>>>> the
>>>> application side? Just roughly steps should be good enough for me to
>>>> start.
>>>>
>>>> Thanks in Advance !
>>>> Polaris
>>>
>>> A WDM driver is simply a kernel DLL. Read the version information of the
>>> driver just as you would do it for a user space DLL.
>>
>>
>
>
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
 >> Stay informed about: Steps for an application to query a driver's version 
Back to top
Login to vote
Polaris

External


Since: Nov 13, 2003
Posts: 16



(Msg. 7) Posted: Mon Sep 12, 2005 10:53 am
Post subject: Re: Steps for an application to query a driver's version [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Mr. Wolf!
Polaris
"Stephan Wolf [MVP]" <stewo68.RemoveThis@hotmail.com> wrote in message
news:1126258209.175247.192430@g43g2000cwa.googlegroups.com...
> In order to get the driver version from an already started (running)
> network interface card (NIC) driver, query its
> OID_GEN_VENDOR_DRIVER_VERSION. This can be done in several ways, e.g.
> via IOCTL or WMI, see
>
> http://www.ndis.com/faq/QA10290101.htm
>
> http://msdn.microsoft.com/library/
> -> "Win32 and COM Development"
> -> "Driver Development Kit"
> -> "Network Devices and Protocols"
>
>>From here see both:
>
> -> "Design Guide"
> -> "Miniport Drivers"
> -> "Obtaining and Setting Miniport Driver Information and NDIS
> Support for WMI"
> -> "NDIS Support for WMI"
>
> ..and:
>
> -> "Reference"
> -> "NDIS Objects"
> -> "General Objects"
> -> "General Operational Characteristics"
> -> "OID_GEN_VENDOR_DRIVER_VERSION"
>
> Stephan
> ---
> Polaris wrote:
>> Hi:
>>
>> I'm new to driver development, just wonder what should be the steps to
>> implement this: On WinXP, a Windows application needs to query the
>> version
>> of a running driver (a network device driver). What are the steps to
>> implement in the drver side (IOCTL?) and what needs to be done in the
>> application side? Just roughly steps should be good enough for me to
>> start.
>>
>> Thanks in Advance !
>> Polaris
>
 >> Stay informed about: Steps for an application to query a driver's version 
Back to top
Login to vote
Ray Trent

External


Since: Sep 12, 2005
Posts: 1



(Msg. 8) Posted: Mon Sep 12, 2005 2:36 pm
Post subject: Re: Steps for an application to query a driver's version [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Polaris wrote:
> I think that does not guarantee to get the version of the running (loaded)
> driver.

No, but neither does any method you can possibly use. Filters can be
injected on anything, the OS can be hooked, the driver itself can be
arbitrarily edited by malicious code to produce a different answer,
etc., etc.

If you look up the image path in the services key and then check the
version info on that file, you're close to as good as you can get, but
with a lot less effort.
--
.../ray\..
 >> Stay informed about: Steps for an application to query a driver's version 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Query: WDM Child Display Driver on Windows - Hello, I want to get/set monitor info (EDID/Brightness etc. using DDC-CI) through a WDM driver on Windows XP/2K. Eventually, I need to talk with the video miniport driver, to acquire the i2c interface (if exposed by the miniport). I am a bit confuse...

how to check a driver's version ? - hi: I'm using Windows XP with VC 7.1. Is there a Win32 API to check a driver (*.sys) version? Thanks Polaris

Modem Driver Version 8.28.0.0 - i scanned my new computer for Windows Updates. One driver update came up (Modem Driver Version 8.28.0.0.) Does anybody know what that is for? Should I download and install it? (XP-home) Thank you.

Device driver uninstallation application??? - Hi, 1. Where can I find some guidelines for how to write a device-driver "uninstallation" program? I can hardly find any in both DDK documentation and sample code. Are there any APIs to use instead of deleting those registry keys one-by-one? ...

serial port query - I have recently installed an ICOM PCR100 (PC controlled receiver) by using the serial bus input (RS232) but I keep getting error messages "port error can't access receiver " Could i use a USB port instead and what do I have to do? Gary
   Windows XP Arc1 (Home) -> 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 ]