Article View: borland.public.delphi.nativeapi
Article #45usb card readers insertion/removal
From: jimbo
Date: Mon, 26 Feb 2007 08:03
Date: Mon, 26 Feb 2007 08:03
10 lines
1682 bytes
1682 bytes
Using WM_DEVICECHANGE I can't get media insert/remove events from a card reader attached to a usb port. If it matters I'm using the usb port on the front of my machine. Is there another way to trap this event? I have found "use RegisterDeviceNotification" but can't find any examples on MSDN or Delphi resources. Could someone provide me an example of how to do this. Don't misunderstand. Connection of the device to the usb port is not the problem. MW_DEVICECHANGE handles this fine. It is removal/insertion of the media into the card reader connected to the usb port that I want to detect. TIA Jim Catz
Technical Details
Message-ID:
<1172476980.771412.52990@p10g2000cwp.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!postnews.google.com!p10g2000cwp.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f94dd,e42315bf417a15e0,start X-Google-Attributes: gidf94dd,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!postnews.google.com!p10g2000cwp.googlegroups.com!not-for-mail From: jimbo@012.net.il Newsgroups: borland.public.delphi.nativeapi Subject: usb card readers insertion/removal Date: 26 Feb 2007 00:03:00 -0800 Organization: http://groups.google.com Lines: 11 Message-ID: <1172476980.771412.52990@p10g2000cwp.googlegroups.com> NNTP-Posting-Host: 87.68.157.122 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1172476995 29604 127.0.0.1 (26 Feb 2007 08:03:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 26 Feb 2007 08:03:15 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: p10g2000cwp.googlegroups.com; posting-host=87.68.157.122; posting-account=Q24yHQ0AAAD--7SYxwljpEf-QeqkWLmW