Article View: borland.public.cppbuilder.nativeapi
Article #11181Re: Low-level access to CompactFlash Card on external USB2.0 port
From: Bob Gonder
Date: Thu, 19 Feb 2004 13:59
Date: Thu, 19 Feb 2004 13:59
17 lines
1703 bytes
1703 bytes
Walt Morrey wrote: >I'm trying to read (for now) a CompactFlash Card on a USB2.0 port. I've attached a file using >biosdisk from an antique version of TurboC. On my WinME laptop, all it finds is Drive C (at drive >== 0x80), even with the CompactFlash Card and reader proper installed. I don't know for sure, but I wouldn't expect the BIOS to know about Windows PNP devices. Try these functions to get a list of available drives. GetLogicalDrives() or GetLogicalDriveStrings() You might then be able to use GetDriveType() or IOCTL_DISK_GET_DRIVE_GEOMETRY (or the other IOCTL_ funcs of the DeviceIoControl() API) if you need to know the drive details.
Technical Details
Message-ID:
<1jf9309g630n8eiuqm9aab130bst1ib60p@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4033d6fc$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7d1b502c63076870 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-19 06:10:13 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Low-level access to CompactFlash Card on external USB2.0 port Date: Thu, 19 Feb 2004 05:59:23 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <1jf9309g630n8eiuqm9aab130bst1ib60p@4ax.com> References: <4033d6fc$1@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: 67.31.165.170 X-Trace: newsgroups.borland.com 1077199163 67.31.165.170 (19 Feb 2004 05:59:23 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail