Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8137665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:13:09+00:00 2026-06-06T11:13:09+00:00

I used SetupDiGetClassDevs() , SetupDiEnumDeviceInfo() and SetupDiGetDeviceRegistryProperty() to enumerate my USB device and check

  • 0

I used SetupDiGetClassDevs(), SetupDiEnumDeviceInfo() and SetupDiGetDeviceRegistryProperty() to enumerate my USB device and check whether my device is available or not.

How can I check whether my proper driver is installed for my device or not?
Is there any APIs available to check this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:13:11+00:00Added an answer on June 6, 2026 at 11:13 am

    You can get the driver information for the device and then check against that, if your driver is installed and up-to-data.

    Here is a bit of C++ code which might help you:

    bool fetchDriverDescription( const std::wstring& driverRegistryLocation, tDriverDescription& desc )
    {
        bool    rval = false;
    
        std::wstring regFolder = L"SYSTEM\\CurrentControlSet\\Control\\Class\\";
        regFolder += driverRegistryLocation;
        win32::registry::reg_key hKey = 
            win32::registry::reg_key::open( HKEY_LOCAL_MACHINE, regFolder, KEY_READ );
        if( hKey )
        {
            if( win32::registry::read( hKey, L"ProviderName", desc.DriverProviderName, false ) != ERROR_SUCCESS )
                return false;
    
            desc.InstalledDriverRegFolder = regFolder;
    
            std::wstring val;
            if( win32::registry::read( hKey, L"DriverVersion", val, false ) == ERROR_SUCCESS )
                desc.Version = val;
            rval = true;
        }
        return rval;
    }
    
    std::wstring driverRegLocation;
    if( fetchStringFromDiGetDevice( hDevInfo, DeviceInfo, SPDRP_DRIVER, driverRegLocation ) )
    {
        bSuccessful = fetchDriverDescription( driverRegLocation, dev.DriverDesc );
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

used to check user input like username not a login account.
I used file_get_contents, curl, simple html dom but can not get HTML from this
There used to be an option in the submit wizard where you can specify
I used the following code to display a rich list. import net.rim.device.api.ui.*; import net.rim.device.api.ui.container.*;
I can tell how many USB HID devices I have (7), but every time
Used this tutorial I have installed jogl, jocl, gluegen, joal libs and added its
I used vs2010 to create a project that uses framework 2.0. I can't use
I used System.Windows.Window.IsActive to detect whether the window is in the foreground and it
I used http://www.youtube.com/get_video?video_id=ID&t=SIGNATURE&fmt=18 replaced ID and SIGNATURE with the proper values. But I don't
used image as like map , user can zoom in/out this image.geting x and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.