Article View: borland.public.cppbuilder.nativeapi
Article #9622Re: How to determine that CD-drive is empty?
From: Alexander Aliev
Date: Thu, 24 Jun 2004 10:40
Date: Thu, 24 Jun 2004 10:40
17 lines
1515 bytes
1515 bytes
> > int old_mode = SetErrorMode(SEM_FAILCRITICALERRORS); > > You should be using SEM_NOOPENFILEERRORBOX instead to suppress > the abort, retry, ignore message box. Unfortunately, the same result - "Access denied" during CreateFile() even with SetErrorMode(SEM_NOOPENFILEERRORBOX). And the same with the combination of these flags. I suspect that SetErrorMode() or its absence is not a reason for CreateFile() failure. So the problem is still exists - how to determine that CD-drive is empty. May be there are some more ideas? Alexander
Technical Details
Message-ID:
<40daaf4f@newsgroups.borland.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-mailReferences:
<40da83a0$1@newsgroups.borland.com> <40da859c$1@newsgroups.borland.com> <40da8ddb@newsgroups.borland.com> <40daa938$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,d00920f15dfe8a59 X-Google-Attributes: gid10cc67,public From: "Alexander Aliev" <ali@isa.ru> Newsgroups: borland.public.cppbuilder.nativeapi References: <40da83a0$1@newsgroups.borland.com> <40da859c$1@newsgroups.borland.com> <40da8ddb@newsgroups.borland.com> <40daa938$1@newsgroups.borland.com> Subject: Re: How to determine that CD-drive is empty? Date: Thu, 24 Jun 2004 14:40:44 +0400 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 195.208.60.41 Message-ID: <40daaf4f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1088073551 195.208.60.41 (24 Jun 2004 03:39:11 -0700) 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