Article View: borland.public.cppbuilder.nativeapi
Article #3348Re: Detecting media insertion/removal
From: Mike Wynne
Date: Wed, 28 Jun 2006 21:15
Date: Wed, 28 Jun 2006 21:15
15 lines
1990 bytes
1990 bytes
"Remy Lebeau (TeamB)" wrote... > You said earlier that the reader adds 4 new drive letters to your system. > Assuming that you have a C drive for the hard drive, and maybe D for a > CD/DVD drive, then the reader would be adding drives E-H. But in your > bitmask, you are asking for device events for drives A-D instead. So your > reader drives will never report the requested events. You need to adjust > your bitmask accordingly. My original mask was 0xffff to make sure I had every drive covered, but since the RegisterDeviceNotification() fails with invalid data, I reduced it to cover drives I absolutely knew existed (Just in case this was the reason it was failing). It still failed with invalid data... MikeW
Technical Details
Message-ID:
<44a2f16a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e15854a90a45465d X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Wynne" <mikeywyn@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi 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> Subject: Re: Detecting media insertion/removal Date: Wed, 28 Jun 2006 22:15:24 +0100 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Rfc2646: Format=Flowed; Original NNTP-Posting-Host: 62.188.49.47 Message-ID: <44a2f16a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1151529322 62.188.49.47 (28 Jun 2006 14:15:22 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail