1

I am trying to write a code that can get the names of the installed drivers in my Windows computer in C (via winapi)?

I am really new to C and I do not know what I can do ? Can you please help me with this situation ?

Thank you very much

James M
  • 18,506
  • 3
  • 48
  • 56
mehmetozer
  • 848
  • 6
  • 14
  • 30

1 Answers1

1

You need the setup API. Start with this article: How to enumerate hardware devices by using SetupDi calls

Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
  • Actually I have used this code before but I dont get the list of the installed drivers – mehmetozer May 10 '12 at 16:23
  • What do you mean by "installed drivers"? – Roger Lipscombe May 11 '12 at 07:59
  • 1
    For example, I have plugged-in a device to my computer, and I want to check if that device's driver was installed before or not. Actually I used the code http://msdn.microsoft.com/en-us/library/windows/desktop/ms682619(v=vs.85).aspx In here to get all devices but I have just a name for the device. I dont know how to compare with the file name now – mehmetozer May 11 '12 at 13:10