🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Detecting media insertion/removal

#3432
From: Mike Wynne
Date: Tue, 27 Jun 2006 18:58
11 lines
1501 bytes
I have an application that reads and writes data to a Compact Flash card via 
USB card reader.  The cards are not formatted on the PC and do not use FAT 
or NTFS.  However, I can read/write to them by accessing \\.\PhysicalDrivex

My problem is that the application needs to detect when the user 
inserts/removes a CF card.  Everything I've read says that a WM_DEVICECHANGE 
message is sent when this happens.  However, my application only sees this 
message when the card reader is inserted/removed -  no message appears to be 
sent when the actual CF card is inserted into the reader.

Can anyone help?
Technical Details
Message-ID: <44a17fbc$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!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-Thread: 10cc67,e15854a90a45465d,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mike Wynne" <mikeywyn@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Detecting media insertion/removal
Date: Tue, 27 Jun 2006 19:58:05 +0100
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.188.49.47
Message-ID: <44a17fbc$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1151434684 62.188.49.47 (27 Jun 2006 11:58:04 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail