Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect Driver Version

Hi,

I would like to detect the version of the driver installed (1.4.2)? How do I do this reliably? I tried to get the version of the nican.dll file but that version doesn't seem to be related to the software release version (1.4.2).

I found a DLL called "NidnetVersion.dll" that seem to have the correct version number that I am looking for. However, this file was only located in the "NI-DNET\bin" directory where I installed the software (which means that it won't be found by "LoadLibrary").

Thanks,

Olav Haugan
0 Kudos
Message 1 of 3
(5,219 Views)
Hi Olav,

you can get that information from the registry. Navigate to the HKLM\SOFTWARE\National Instruments\NI-DNET\CurrentVersion branch and look for the 'Version' entry. The version on that DLL is not guaranteed to have the 'right' version.

-B2k
Message 2 of 3
(5,214 Views)
Hi,
 
Thanks! That is just what I was looking for.
 
Olav
0 Kudos
Message 3 of 3
(5,210 Views)