🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to read USB port ?

#14533
From: Mauricio
Date: Sun, 10 Aug 2003 19:35
22 lines
1424 bytes
Hi,

I know how to read COM port like a file.
For instance,

        hComm = CreateFile("COM1",
                           GENERIC_READ | GENERIC_WRITE,
                           0,
                           0,
                           OPEN_EXISTING,
                           FILE_FLAG_OVERLAPPED,
                           0);

and ReadFile(...)...

How to read USB ports ? The same way ? 
What is the port name ?
Could anyone post or point to any sample code ?

Thanks,
Mauricio
Technical Details
Message-ID: <3f369e6a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f36758ac53bdad0e,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-10 12:39:38 PST
From: "Mauricio" <mpeixot@uol.com.br>
Sender: "Mauricio" <mpeixot@uol.com.br>
Reply-To: "Mauricio" <mpeixot@uol.com.br>
Subject: How to read USB port ?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 200.147.37.217 200.147.37.217    
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f369e6a$1@newsgroups.borland.com>
Date: 10 Aug 2003 12:35:06 -0700
X-Trace: newsgroups.borland.com 1060544106 207.105.83.65 (10 Aug 2003 12:35:06 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail