Article View: borland.public.cppbuilder.nativeapi
Article #4453Re: Question about WM_DEVICECHANGE
From: Kris
Date: Wed, 25 Jan 2006 21:04
Date: Wed, 25 Jan 2006 21:04
23 lines
1965 bytes
1965 bytes
On Wed, 25 Jan 2006 11:23:43 -0800, "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote: >So? You can filter those out before deciding to scan your devices. Or, >don't even scan at all. Use the details inside those notifications to >add/remove just those specific items to/from your list instead of refreshing >the entire list as a whole, since notifications are sent on a per-device >basis to begin with. I totally missed the fact that DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE contained extra information about the event. Thanks for pointing that out. This should help a lot. >Are you sure you have that right? You get a removal notification when you >connect a device, and an arrival notification when you remove it? Oops. I accidentally swapped the two. They should of course be reversed. Thanks for the info. I should now have sufficient info to implement WM_DEVICECHANGE properly. Regards, Kris
Technical Details
Message-ID:
<ucpft1h3e51imak9938ivkeb136tb9t0rd@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<3qbft19f0602l0f1m44t2uhiuio593trh1@4ax.com> <43d7cf9f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,72e517fafc72a733 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Kris <x.y@xyz.xx> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Question about WM_DEVICECHANGE Date: Wed, 25 Jan 2006 22:04:33 +0100 Message-ID: <ucpft1h3e51imak9938ivkeb136tb9t0rd@4ax.com> References: <3qbft19f0602l0f1m44t2uhiuio593trh1@4ax.com> <43d7cf9f$1@newsgroups.borland.com> X-Newsreader: Forte Free Agent 3.1/32.783 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.11.228.79 X-Trace: newsgroups.borland.com 1138222889 81.11.228.79 (25 Jan 2006 13:01:29 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail