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 3237056
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:41:36+00:00 2026-05-17T17:41:36+00:00

I have an application that looks for a specific FTDI serial port with customised

  • 0

I have an application that looks for a specific FTDI serial port with customised USB descriptors. My current code uses the example from Code Project, which searches the MSSerial_PortName WMI table under root\WMI, and pulls out extra USB information from root\CIMV2\WIN32_PnPEntity.

This worked well under XP, but the application must also run under a standard user onWindows 7. In this environment access of root\WMI results in an “Access Denied” ManagementException.

Can anybody suggest a way to cross reference the DOS device name of a serial port to the USB information, while running as a standard user? So far I’ve looked at the root\CIMV2\WIN32_SerialPort* tables, but they only contain motherboard ports. I’ve also considered using SetupAPI, but I haven’t found a complete and working PInvoke template for 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-05-17T17:41:37+00:00Added an answer on May 17, 2026 at 5:41 pm

    I’ve discovered an answer suitable for our case, though not a generic one. Our USB converters are all FTDI, and FTDI provide a DLL that handles this. My code using the DLL is below:

    UInt32 count = 0;
    FTDI.FT_STATUS status = ftdi.GetNumberOfDevices(ref count);
    if (status != FTDI.FT_STATUS.FT_OK)
    {
        log.Warn("Unable to access FTDI");
        return ports;
    }
    FTDI.FT_DEVICE_INFO_NODE[] list = new FTDI.FT_DEVICE_INFO_NODE[count];
    status = ftdi.GetDeviceList(list);
    if (status != FTDI.FT_STATUS.FT_OK)
    {
        log.Warn("Unable to access FTDI");
        return ports;
    }
    foreach (FTDI.FT_DEVICE_INFO_NODE node in list)
    {
        if ((status = ftdi.OpenByLocation(node.LocId)) == FTDI.FT_STATUS.FT_OK)
        {
            try
            {
                string comport;
                ftdi.GetCOMPort(out comport);
                ports.Add(new Port(comport, node.Description, node.SerialNumber));
            }
            finally
            {
                ftdi.Close();
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a Rails 3 application that will have user-specific settings (looks, functionality, etc)
I have a plot with overlapping shaded confidence intervals that looks like this: and
I have an application that's built on top of Eventlet. I'm trying to write
i have a web.config file that looks like this: <?xml version=1.0?> <configuration> <system.web> <compilation
I want to have charts in my Swing application that show a wide variety
We're developing an android application that has several different tabs. We've been trying to
I am working on a simple cart application that needs the ability to pass
I've written a basic Rails 3 application that shows a form and an upload
I have an application in which there are Course s, Topic s, and Tag
I'm building an application which will initially use SQLServer 2008 as the DBMS. How

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.