Click here to Skip to main content
15,902,299 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: Is there a site like this one for electronics projects? Pin
Randor 19-Feb-10 10:19
professional Randor 19-Feb-10 10:19 
QuestionPrinter for business Pin
Mekong River16-Nov-09 12:48
Mekong River16-Nov-09 12:48 
AnswerRe: Printer for business Pin
Richard MacCutchan16-Nov-09 21:39
mveRichard MacCutchan16-Nov-09 21:39 
QuestionEletrecity usage Pin
Mekong River16-Nov-09 12:46
Mekong River16-Nov-09 12:46 
AnswerRe: Eletrecity usage Pin
Richard MacCutchan16-Nov-09 21:37
mveRichard MacCutchan16-Nov-09 21:37 
AnswerRe: Eletrecity usage Pin
Member 368078519-Nov-09 3:30
Member 368078519-Nov-09 3:30 
QuestionInstalling drivers with a set of INF, CAT and SYS-files Pin
Jörgen Sigvardsson15-Nov-09 5:58
Jörgen Sigvardsson15-Nov-09 5:58 
AnswerRe: Installing drivers with a set of INF, CAT and SYS-files [Solved - most likely] Pin
Jörgen Sigvardsson15-Nov-09 7:48
Jörgen Sigvardsson15-Nov-09 7:48 
I have solved it. I think. Unsure | :~ I'm working remotely into a virtual machine image at work. Unfortunately, as I'm not there, I can't really connect the USB-cable. Big Grin | :-D

Anyway, I found the solution in a book I have: Programming the Microsoft Windows Driver Model by Walter Oney (Microsoft Press). Distributed with it, there's a tool called FastInst, that installs the driver and the corresponding device node given a INF-file and all dependent files (drivers, CAT files, etc). I cannot publish the code here for legal reasons - I don't want to be sued for copyright infringements...

The chapter that references the topic of installing drivers, mentions that you can find the equivalent code in the DDK sample DEVCON. I can't publish that either, because the DDK isn't freely available anymore. I think there are old versions out there, that are freely available. YMMV.

Anyway, I verified that the FastInst utility installed the drivers in the correct place (C:\Windows\system32\drivers), the INF files in C:\Windows\INF (as oemXXX.inf as predicted by the book and several other web sites), corresponding registry entries (services, and configurations), as well as the signatures in C:\Windows\System32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}.

I'll update this tomorrow morning if it worked out or not.

The Windows functions needed to perform the installation are (I think I can publish this without infringing on any copyrights):
* UpdateDriverForPlugAndPlayDevices()
* SetupDiCallClassInstaller()
* SetupDiCreateDeviceInfo()
* SetupDiSetDeviceRegistryProperty()
* SetupDiCreateDeviceInfoList()
* SetupDiDestroyDeviceInfoList()
* SetupOpenInfFile()
* SetupFindFirstLine()
* SetupFindNextLine()
* SetupGetFieldCount()
* SetupGetStringField()
* SetupDiGetINFClass()
* SetupDiClassGuidsFromName()

That ought to be food for google. This little utility by Walter Oney has probably been written many times by others.

--
Kein Mitleid Für Die Mehrheit

AnswerSOLVED: Installing drivers with a set of INF, CAT and SYS-files Pin
Jörgen Sigvardsson15-Nov-09 21:17
Jörgen Sigvardsson15-Nov-09 21:17 
AnswerUPDATE: Installing drivers with a set of INF, CAT and SYS-files Pin
Jörgen Sigvardsson16-Nov-09 4:55
Jörgen Sigvardsson16-Nov-09 4:55 
AnswerRe: Installing drivers with a set of INF, CAT and SYS-files Pin
fat_boy14-Jan-10 5:49
fat_boy14-Jan-10 5:49 
GeneralRe: Installing drivers with a set of INF, CAT and SYS-files Pin
Jörgen Sigvardsson14-Jan-10 5:57
Jörgen Sigvardsson14-Jan-10 5:57 
GeneralRe: Installing drivers with a set of INF, CAT and SYS-files Pin
fat_boy15-Jan-10 5:37
fat_boy15-Jan-10 5:37 
QuestionKeyboard problem Pin
Mekong River13-Nov-09 17:28
Mekong River13-Nov-09 17:28 
AnswerRe: Keyboard problem Pin
Indivara23-Nov-09 16:48
professionalIndivara23-Nov-09 16:48 
GeneralRe: Keyboard problem Pin
Mekong River23-Nov-09 17:13
Mekong River23-Nov-09 17:13 
GeneralRe: Keyboard problem Pin
Indivara23-Nov-09 23:51
professionalIndivara23-Nov-09 23:51 
QuestionIterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Jörgen Sigvardsson12-Nov-09 20:02
Jörgen Sigvardsson12-Nov-09 20:02 
AnswerRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Luc Pattyn13-Nov-09 1:15
sitebuilderLuc Pattyn13-Nov-09 1:15 
AnswerRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Randor 13-Nov-09 12:00
professional Randor 13-Nov-09 12:00 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Jörgen Sigvardsson14-Nov-09 21:16
Jörgen Sigvardsson14-Nov-09 21:16 
General[Message Deleted] Pin
ch_Canda3-Dec-09 18:10
ch_Canda3-Dec-09 18:10 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Jörgen Sigvardsson3-Dec-09 20:48
Jörgen Sigvardsson3-Dec-09 20:48 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Jörgen Sigvardsson14-Nov-09 22:32
Jörgen Sigvardsson14-Nov-09 22:32 
GeneralRe: Iterating over serial ports, detecting virtual serial ports from a specific vendor, from user mode apps Pin
Randor 15-Nov-09 0:37
professional Randor 15-Nov-09 0:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.