🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to determine that CD-drive is empty?

#9636
From: Bob Gonder
Date: Fri, 25 Jun 2004 08:05
19 lines
2052 bytes
Simon Macneall wrote:
>none of which works correctly. As far as I can tell mpOpen is whether the  
>media is open, not the drawer.
>and closing the drawer and waiting for it to spin up and checking a file  
>is not a very nice solution either. There must be a way of doing it, as  
>WinDVD does it all correctly.

Is IDiscRecorder of any help?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/idiscrecorder.asp
See also
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/rsm_media_change_detection.asp?frame=true
Hmm.. both XP solutions.....


Also see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/detecting_media_insertion_or_removal.asp?frame=true
Talks about WM_DEVICECHANGE
And
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/device_management_control_codes.asp?frame=true
Technical Details
Message-ID: <74mnd0t561o702vk69e3mugo3jjndn3n85@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40da83a0$1@newsgroups.borland.com> <40dab6f4$1@newsgroups.borland.com> <40dabd59$1@newsgroups.borland.com> <opr94ibay12nqexn@lightyear> <opr94juib12nqexn@lightyear> <40dbc351$1@newsgroups.borland.com> <opr940rkqc2nqexn@lightyear>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d00920f15dfe8a59
X-Google-Attributes: gid10cc67,public
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to determine that CD-drive is empty?
Date: Fri, 25 Jun 2004 01:05:25 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <74mnd0t561o702vk69e3mugo3jjndn3n85@4ax.com>
References: <40da83a0$1@newsgroups.borland.com> <40dab6f4$1@newsgroups.borland.com> <40dabd59$1@newsgroups.borland.com> <opr94ibay12nqexn@lightyear> <opr94juib12nqexn@lightyear> <40dbc351$1@newsgroups.borland.com> <opr940rkqc2nqexn@lightyear>
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: 65.173.66.198
X-Trace: newsgroups.borland.com 1088150755 65.173.66.198 (25 Jun 2004 01:05:55 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail