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



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional

This article was previously published under Q263926

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 the Microsoft 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.

Modification Type:MinorLast Reviewed:10/19/2005
Keywords:kbHotfixServer kbQFE kbAppDev kbbug kbfix kbProgramming kbWin2000PreSP2Fix w2000apps KB263926