From:	SMTP%"nathann@microsoft.com" 20-NOV-1997 18:05:48.67
To:	"'Ilya '" <ilya@any.com>, ntdev@atria.com
CC:	
Subj:	RE: [ntdev] CD-ROM disc presence

Return-Path: owner-ntdev@atria.com
Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX);
	Thu, 20 Nov 1997 18:05:37 -0500
Received: by gw.atria.com id <NAA10967@gw.atria.com> Thu, 20 Nov 1997 13:09:17 -0500    
Received: from mail1.microsoft.com by gw.atria.com id <NAA10923@gw.atria.com> Thu, 20 Nov 1997 13:09:10 -0500    
Received: by INET-01-IMC with Internet Mail Service (5.5.1960.3)
	id <XD9FTVPM>; Thu, 20 Nov 1997 10:09:10 -0800
Message-ID: <AF4C1F8C5306D111AD5F0000F8662ED30243D5AA@red-msg-41.dns.microsoft.com>
From: Nathan Nesbit <nathann@microsoft.com>
To: "'Ilya '" <ilya@any.com>, ntdev@atria.com
Subject: RE: [ntdev] CD-ROM disc presence
Date: Thu, 20 Nov 1997 10:09:03 -0800
X-Mailer: Internet Mail Service (5.5.1960.3)
Sender: owner-ntdev@atria.com
Precedence: bulk

The attached code works to detect a CD-ROM or floppy in the drive without a
pop-up message box.  I've tried it on 2 machines, one with a SCSI CD-ROM and
the other with a EIDE CD-ROM and it works for me. <<floppy.cxx>> 

BTW, this code is NT only, it will not work on Win95.

Nathan Nesbit
Software Design Engineer
NT Core Test


	-----Original Message-----
	From:	Ilya  [SMTP:ilya@any.com]
	Sent:	Thursday, November 20, 1997 12:19 AM
	To:	ntdev@atria.com
	Subject:	[ntdev] CD-ROM disc presence

	Hi 
	I'm trying to open file on compact disc in CD-ROM drive.
	If disc is not present in drive some drivers throw ASSERT MessageBox
	If it is possible to get notification about the presence of disc in
drive and avoid this Assert message ?
	Ilya Shpilberg 
	ilya@any.com
	 

begin 600 floppy.cxx
M(VEN8VQU9&4@/'=I;F1O=W,N:#X-"B-I;F-L=61E(#QS=&1I;RYH/@T*(VEN
M8VQU9&4@/'=I;FEO8W1L+F@^#0H-"G9O:60@;6%I;BAI;G0@:4%R9T-O=6YT
M+"!C:&%R*B!A<W1R07)G<UM=*0T*>PT*("`@($)/3TP@9DEN1')I=F4[#0H@
M("`@2$%.1$Q%(&A$<FEV93L-"B`@("!$5T]21"!D=U1E;7`[#0H@("`@8VAA
M<B!S=')$<FEV95M-05A?4$%42%T[#0H@("`@8VAA<B!C1')I=F5,971T97([
M#0H-"B`@("!I9BAI07)G0V]U;G0@(3T@,BD-"B`@("![#0H@("`@("`@('!R
M:6YT9B@B55-!1T4Z("5S(&1R:79E;&5T=&5R(BQA<W1R07)G<ULP72D[#0H@
M("`@("`@(')E='5R;CL-"B`@("!]#0H-"B`@("!C1')I=F5,971T97(]*&%S
M=')!<F=S6S%=*5LP73L-"B`@("!S<')I;G1F*'-T<D1R:79E+")<7%Q<+EQ<
M)6,Z(BQC1')I=F5,971T97(I.PT*("`@(&A$<FEV93U#<F5A=&5&:6QE*'-T
M<D1R:79E+`T*("`@("`@("`@("`@("`@("`@("`@($=%3D5224-?4D5!1"P-
M"B`@("`@("`@("`@("`@("`@("`@("!&24Q%7U-(05)%7U=2251%+`T*("`@
M("`@("`@("`@("`@("`@("`@($Y53$PL#0H@("`@("`@("`@("`@("`@("`@
M("`@3U!%3E]%6$E35$E.1RP-"B`@("`@("`@("`@("`@("`@("`@("!&24Q%
M7U)%041?05144DE"551%4R`L#0H@("`@("`@("`@("`@("`@("`@("`@3E5,
M3"D[#0H-"B`@("!I9BA)3E9!3$E$7TA!3D1,15]604Q512`]/2!H1')I=F4I
M#0H@("`@>PT*("`@("`@("!P<FEN=&8H(D-O=6QD(&YO="!O<&5N(&1R:79E
M(&AA;F1L95QN(BD[#0H@("`@("`@(')E='5R;CL-"B`@("!]#0H-"@EF26Y$
M<FEV93U$979I8V5);T-O;G1R;VPH:$1R:79E+`T*"0D)"0D)"2!)3T-43%]$
M25-+7T-(14-+7U9%4DE&62P-"@D)"0D)"0D@3E5,3"P-"@D)"0D)"0D@,"P-
M"@D)"0D)"0D@3E5,3"P-"@D)"0D)"0D@,"P-"@D)"0D)"0D@)F1W5&5M<"P-
M"@D)"0D)"0D@3E5,3"D[#0H-"@EI9BAF26Y$<FEV92D-"@D)<')I;G1F*")4
M:&4@9&ES:R!I<R!I;B!T:&4@9')I=F5<;B(I.PT*"65L<V4-"@D)<')I;G1F
L*")4:&4@9&ES:R!I<R!.3U0@:6X@=&AE(&1R:79E7&XB*3L-"GT-"@T*#0H=
`
end
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ To unsubscribe, send email to ntdev-request@atria.com with body
UNSUBSCRIBE (the subject is ignored). ]
