🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#9623
From: Martin Nijhoff
Date: Thu, 24 Jun 2004 11:11
9 lines
1196 bytes
Hi Alexander,

You should call SetErrorMode(SEM_NOOPENFILEERRORBOX) before you try to
access the CD drive, instead of using CreateFile() and DeviceIoControl() to
determine whether the CD drive is empty.

Hope this helps,

Martin
Technical Details
Message-ID: <40dab6f4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!proxad.net!62.253.162.219.MISMATCH!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40da83a0$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: "Martin Nijhoff" <dont@mail.me>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40da83a0$1@newsgroups.borland.com>
Subject: Re: How to determine that CD-drive is empty?
Date: Thu, 24 Jun 2004 13:11:50 +0200
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 80.100.129.156
Message-ID: <40dab6f4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1088075508 80.100.129.156 (24 Jun 2004 04:11:48 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!proxad.net!62.253.162.219.MISMATCH!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail