You are currently offline, waiting for your internet to reconnect

Your browser is out-of-date

You need to update your browser to use the site.

Update to the latest version of Internet Explorer

BUG: MSCDEX May Not Detect Disk Change

This article was previously published under Q123456
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
If a GetAttributes function call is the first MS-DOS API call madefollowing a CD-ROM disk change, MSCDEX doesn't detect that the disk ischanged, so the function call reflects the contents of the previous disk.The next Open, Search, or Change Directory function call will cause MSCDEXto detect the disk change.
The MSCDEX driver fails to issue a Media Check call to the HardwareDependent Device Driver when the GetAttributes call is made.
You can check for a CD-ROM ID file by using the C-Runtime access() functionor by making direct calls to the MS-DOS Interrupt 21h. Function AX=4300hshould be changed to use a file open call. Windows Applications that usethe SDK OpenFile() function to detect a key file should be changed to use_lopen().
Microsoft has confirmed this to be a problem in the MSCDEX versions listedat the beginning of this article. We are researching this problem and willpost new information here in the Microsoft Knowledge Base as it becomesavailable.
The OpenFile() function in the Microsoft Windows version 3.1 SDK makes aGetAttributes function call prior to opening a file for reading if thesystem is running with Novell Netware loaded. The OpenFile() function failsif the GetAttributes() function fails to find the requested file. As aresult, if the OpenFile() function is used to detect which CD-ROM is in thedrive by opening a key file, the wrong CD-ROM may be detected following adisk change.

NOTE: Some products mentioned in this article are manufactured by vendorsindependent of Microsoft; we make no warranty, implied or otherwise,regarding these products' performance or reliability.
buglist2.00 buglist2.10 buglist2.20 buglist2.21 buglist2.22 buglist2.23

Article ID: 123456 - Last Review: 10/26/2007 15:57:00 - Revision: 3.1

  • Microsoft MS-DOS CD-ROM Extensions 2.0
  • Microsoft MS-DOS CD-ROM Extensions 2.1
  • Microsoft CD-ROM Extensions (MSCDEX) for MS-DOS 2.2
  • Microsoft MS-DOS CD-ROM Extensions 2.21
  • Microsoft MS-DOS CD-ROM Extensions 2.22
  • Microsoft MS-DOS CD-ROM Extensions 2.23
  • Microsoft Windows Software Development Kit 3.1
  • kbbug kbqfe kb3rdparty kbmm kbhotfixserver kbproductlink KB123456
&did=1&t="> var varCustomerTracking = 1; var Route = "76500"; var Ctrl = ""; document.write(" ')[0].appendChild(m);" onload="var m=document.createElement('meta');'ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src=""> >f?DI=4050&did=1&t=">