🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by Mike Collins Wed, 04 Apr 2007 02:30
detecting / determining USB ports
#2236
Author: Mike Collins
Date: Wed, 04 Apr 2007 02:30
7 lines
998 bytes
Hi all, just a quicky - google searched returned nothing.

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

Many thanks in advance

Mike Collins 
Re: detecting / determining USB ports
#2238
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads