Article View: borland.public.cppbuilder.nativeapi
Article #3134Re: OnDeviceChange Problem
From: Michel Leunen
Date: Tue, 17 Oct 2006 16:12
Date: Tue, 17 Oct 2006 16:12
19 lines
1664 bytes
1664 bytes
Uri wrote: > I tried that, it's not working, every time when the function is > call (when I connect or remove the USB device from the PC) the > parameter 'm.WParam' stay 7 (m.WParam = 7) Why does it not chaning? That's a DBT_DEVNODES_CHANGED. According to MSDN : "The system broadcasts the DBT_DEVNODES_CHANGED device event when a device has been added to or removed from the system." It seems there is no way to know if the device has been added or removed from the system. Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Technical Details
Message-ID:
<453500b1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4534d31d$1@newsgroups.borland.com> <4534eac1$1@newsgroups.borland.com> <4534ec6f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a72a1c41eec7e70f X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 17 Oct 2006 18:12:12 +0200 From: Michel Leunen <nospam@noreply.be> Organization: www.leunen.com User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: OnDeviceChange Problem References: <4534d31d$1@newsgroups.borland.com> <4534eac1$1@newsgroups.borland.com> <4534ec6f$1@newsgroups.borland.com> In-Reply-To: <4534ec6f$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.247.83.169 Message-ID: <453500b1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1161101489 81.247.83.169 (17 Oct 2006 09:11:29 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail