🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3358

Re: Detecting media insertion/removal

#3358
From: Bob Gonder
Date: Thu, 29 Jun 2006 17:04
20 lines
2092 bytes
Mike Wynne wrote:

>http://groups.google.co.uk/group/microsoft.public.platformsdk.base/browse_frm/thread/a428cb9bd0ecf7a0/204e48bfc5681a05?lnk=st&q=DEV_BROADCAST_VOLUME+RegisterDeviceNotification&rnum=2&hl=en#204e48bfc5681a05
>
>So it looks like DEV_BROADCAST_VOLUME is a dead end...

Did you read further down (message 4), where they go on to talk about
CDs?
The last message has several points that sound likely, including....

<paraphrased>
"Under XP, not all media show up as drives, but may be added paths, so
would not get the notifications."

"it's also possible to register for pnp events as a service, and
receive SERVICE_CONTROL_DEVICEEVENT service controls to your
services's HandlerEx routine"


I also wonder if the device driver fails to report the media changes?
Technical Details
Message-ID: <9618a298a2ggr91ghjfiv1b97v2fidm2ur@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.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
References: <44a17fbc$1@newsgroups.borland.com> <44a1a4e8$1@newsgroups.borland.com> <44a1aa53@newsgroups.borland.com> <44a1c9cc$1@newsgroups.borland.com> <44a22030@newsgroups.borland.com> <44a2a037$1@newsgroups.borland.com> <44a2cf86$1@newsgroups.borland.com> <44a2f062$1@newsgroups.borland.com> <44a2f16a$1@newsgroups.borland.com> <44a3082c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e15854a90a45465d
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Detecting media insertion/removal
Date: Thu, 29 Jun 2006 10:04:25 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <9618a298a2ggr91ghjfiv1b97v2fidm2ur@4ax.com>
References: <44a17fbc$1@newsgroups.borland.com> <44a1a4e8$1@newsgroups.borland.com> <44a1aa53@newsgroups.borland.com> <44a1c9cc$1@newsgroups.borland.com> <44a22030@newsgroups.borland.com> <44a2a037$1@newsgroups.borland.com> <44a2cf86$1@newsgroups.borland.com> <44a2f062$1@newsgroups.borland.com> <44a2f16a$1@newsgroups.borland.com> <44a3082c@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.49.220.171
X-Trace: newsgroups.borland.com 1151600665 71.49.220.171 (29 Jun 2006 10:04:25 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.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