Article View: borland.public.cppbuilder.nativeapi
Article #3132Re: OnDeviceChange Problem
From: Uri
Date: Tue, 17 Oct 2006 14:45
Date: Tue, 17 Oct 2006 14:45
21 lines
1352 bytes
1352 bytes
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?
Uri.
>You have to test against m.WParam. Something like:
>
>switch(m.WParam)
>{
> case DBT_DEVICEARRIVAL:
> //a new device has been inserted
> break;
> case DBT_DEVICEREMOVECOMPLETE:
> //a device has been removed
> break;
>}
>
>Michel
Technical Details
Message-ID:
<4534ec6f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4534d31d$1@newsgroups.borland.com> <4534eac1$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 From: "Uri" <Uri@MyMail.com> Sender: "Uri" <Uri@MyMail.com> Reply-To: "Uri" <Uri@MyMail.com> Subject: Re: OnDeviceChange Problem Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.0.27.159 References: <4534d31d$1@newsgroups.borland.com> <4534eac1$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4534ec6f$1@newsgroups.borland.com> Date: 17 Oct 2006 07:45:03 -0700 X-Trace: newsgroups.borland.com 1161096303 207.105.83.66 (17 Oct 2006 07:45:03 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail