Article View: borland.public.cppbuilder.nativeapi
Article #9625Re: How to determine that CD-drive is empty?
From: Remy Lebeau (TeamB)
Date: Thu, 24 Jun 2004 16:57
Date: Thu, 24 Jun 2004 16:57
20 lines
1594 bytes
1594 bytes
"Alexander Aliev" <ali@isa.ru> wrote in message news:40da8ddb@newsgroups.borland.com... > please, could you say a little more. I inserted the following > line before call to CreateFile() : > > int old_mode = SetErrorMode(SEM_FAILCRITICALERRORS); > > but the result is the same - "Access denied" after it. I did not say that SetErrorMode() would get rid of the Access Denied error. I meant that it woud get rid of the "Try again, Continue, Cancel" prompt instead. As for the CreateFile() itself, you did not specify any access rights. Try specifying GENERIC_READ instead of 0. Gambit
Technical Details
Message-ID:
<40db08f9$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!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>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,d00920f15dfe8a59 X-Google-Attributes: gid10cc67,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40da83a0$1@newsgroups.borland.com> <40da859c$1@newsgroups.borland.com> <40da8ddb@newsgroups.borland.com> Subject: Re: How to determine that CD-drive is empty? Date: Thu, 24 Jun 2004 09:57:59 -0700 Lines: 22 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: 68.169.168.124 Message-ID: <40db08f9$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1088096505 68.169.168.124 (24 Jun 2004 10:01:45 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail