Article View: borland.public.cppbuilder.nativeapi
Article #2943Re: OnDeviceChange Problem
From: Uri
Date: Wed, 18 Oct 2006 14:20
Date: Wed, 18 Oct 2006 14:20
24 lines
1783 bytes
1783 bytes
I tried the following, 'NotificationFilter' data looks exactly
the same for 'Insert' or 'Remove'.
also, I did not know from where to take
'NotificationFilter.dbcc_classguid' data.
Thanks.
void __fastcall TForm1::WMDiskChange( TMessage &Message )
{
DEV_BROADCAST_DEVICEINTERFACE NotificationFilter;
char szMsg[80];
ZeroMemory( &NotificationFilter, sizeof( NotificationFilter ) );
NotificationFilter.dbcc_size = sizeof( DEV_BROADCAST_DEVICEINTERFACE );
NotificationFilter.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
//NotificationFilter.dbcc_classguid = InterfaceClassGuid; // ? ? ? ? ?
RegisterDeviceNotification( Application->Handle, &NotificationFilter, DEVICE_NOTIFY_WINDOW_HANDLE );
}
Technical Details
Message-ID:
<45363823$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsgate.newsserver.nl!multikabel.net!feed10.multikabel.net!news.buerger.net!news.taunusstein.net!news.soft-gems.net!open-news-network.org!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<4534d31d$1@newsgroups.borland.com> <45350f17@newsgroups.borland.com> <453620dd$1@newsgroups.borland.com> <4536288b@newsgroups.borland.com> <45362fb9$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@nomail.com> Sender: "Uri" <Uri@nomail.com> Reply-To: "Uri" <Uri@nomail.com> Subject: Re: OnDeviceChange Problem Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.0.27.159 References: <4534d31d$1@newsgroups.borland.com> <45350f17@newsgroups.borland.com> <453620dd$1@newsgroups.borland.com> <4536288b@newsgroups.borland.com> <45362fb9$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <45363823$1@newsgroups.borland.com> Date: 18 Oct 2006 07:20:19 -0700 X-Trace: newsgroups.borland.com 1161181219 207.105.83.66 (18 Oct 2006 07:20:19 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsgate.newsserver.nl!multikabel.net!feed10.multikabel.net!news.buerger.net!news.taunusstein.net!news.soft-gems.net!open-news-network.org!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail