Article View: borland.public.cppbuilder.nativeapi
Article #2942Re: OnDeviceChange Problem
From: Uri
Date: Wed, 18 Oct 2006 13:44
Date: Wed, 18 Oct 2006 13:44
26 lines
1551 bytes
1551 bytes
>Have a look at RegisterDeviceNotification() in MSDN. It seems to be the >correct way to do what you want. > >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/registering_for_device_notification.asp > >or > >http://tinyurl.com/w9h6w > >Michel Hi, I did not understand how to use it... from where do I call to this function? what is the 'GUID InterfaceClassGuid' parameter from where do I take it? Where exactly 'hWnd' get it's value? Where do I find the defenition of DEV_BROADCAST_DEVICEINTERFACE ? Which paarmeter shows me if the device was Inserted or Removed ? Thanks.
Technical Details
Message-ID:
<45362fb9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4534d31d$1@newsgroups.borland.com> <45350f17@newsgroups.borland.com> <453620dd$1@newsgroups.borland.com> <4536288b@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> NNTP-Posting-Host: 207.105.83.66 Message-ID: <45362fb9$1@newsgroups.borland.com> Date: 18 Oct 2006 06:44:25 -0700 X-Trace: newsgroups.borland.com 1161179065 207.105.83.66 (18 Oct 2006 06:44:25 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail