🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

detecting removable media

#4845
From: Mike Collins
Date: Thu, 17 Nov 2005 02:14
14 lines
1514 bytes
Hi all, just a quickie.  Is there any defined or specify way of detecting / 
determining a removable media device.  What I mean is that I have an app and 
I need the user to save some data out from it, however I only want them to 
be able to save it to a removable device i.e. floppy, zip, jaz, USB flash 
drive etc.  So firstly, is there any method to determine if there are any 
such devices installed and secondly, if I use a save dialog, is there any 
way to test if the returned path relates to such a removable device.

I can think of long of long winded and convoluted methods but \I was just 
wondering of there is a specific method / api I can use to test this.

Thanks in advance,

Mike C 
Technical Details
Message-ID: <437be584@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6e2054a8eafb2f43,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mike Collins" <its@thebottomofthe.post>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: detecting removable media
Date: Thu, 17 Nov 2005 02:14:36 -0000
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 81.2.92.14
Message-ID: <437be584@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1132193156 81.2.92.14 (16 Nov 2005 18:05:56 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail