🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2238

Re: detecting / determining USB ports

#2238
From: Bob Gonder
Date: Wed, 04 Apr 2007 14:29
18 lines
1533 bytes
Mike Collins wrote:

>Is there an easy way to determine if a system has ANY USB ports?

I think this will

USB_CONTROLLER_INFO_0  from
IOCTL_USB_USER_REQUEST
http://msdn2.microsoft.com/en-us/library/aa476224.aspx

Which uses DeviceIoControl()
I think they are saying to use \\.\FDO as the filename for CreateFile
that gives the handle needed for DeviceIoControl.


For more general info, you might start here
Bus Driver Interfaces Available to USB Clients
http://msdn2.microsoft.com/en-us/library/ms790710.aspx
Technical Details
Message-ID: <ksb713hqo95tm6bah0ga6em0c7pthjjhr2@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4612f9fd@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a7cd5fc20b550d00
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: detecting / determining USB ports
Date: Wed, 04 Apr 2007 07:29:47 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <ksb713hqo95tm6bah0ga6em0c7pthjjhr2@4ax.com>
References: <4612f9fd@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.88.109
X-Trace: newsgroups.borland.com 1175696986 69.69.88.109 (4 Apr 2007 07:29:46 -0800)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail