🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#9619
From: Alexander Aliev
Date: Thu, 24 Jun 2004 08:18
14 lines
1266 bytes
Remy,

> Use SetErrorMode() before then accessing the drive.

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.
So I can't still get handle of device to query it with DeviceIoControl().

Regards,
Alexander
Technical Details
Message-ID: <40da8ddb@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-mail
References: <40da83a0$1@newsgroups.borland.com> <40da859c$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>
Subject: Re: How to determine that CD-drive is empty?
Date: Thu, 24 Jun 2004 12:18:00 +0400
Lines: 17
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: <40da8ddb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1088064987 195.208.60.41 (24 Jun 2004 01:16:27 -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