16-Bit MS-DOS-Based Programs Cannot Change Label with CreateNewFile() Function

This article was previously published under Q263926
This article has been archived. It is offered "as is" and will no longer be updated.
SYMPTOMS
16-bit MS-DOS-based program behave differently under Windows 2000 than under MS-DOS when they call the CreateNewFile function (INT 21h, AH=5Bh) to write a disk label (CX=08h).
RESOLUTION
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack

Windows 2000

The English version of this fix should have the following file attributes or later:
   Date    Time    Size     Version        File name----------------------------------------------------   6/8/00  3:55PM  395,024  5.0.2195.2096  Ntvdm.exe				

WORKAROUND
You can use the CreateFile function (INT 21H, AH=3Ch) to change the label. However, to use this method, you must have access to the source code for the program.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 2.
Properties

Article ID: 263926 - Last Review: 10/20/2013 21:04:15 - Revision: 3.5

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • kbnosurvey kbarchive kbhotfixserver kbqfe kbappdev kbbug kbfix kbprogramming kbwin2000presp2fix KB263926
Feedback