Detecting Windows NT from an MS-DOS-Based Application (100290)
The information in this article applies to:
- Microsoft Win32 Software Development Kit (SDK) 3.1
- Microsoft Win32 Software Development Kit (SDK) 3.5
- Microsoft Win32 Software Development Kit (SDK) 3.51
- Microsoft Win32 Software Development Kit (SDK) 4.0
This article was previously published under Q100290 SUMMARY
There are calls that MS-DOS-based applications can make that are not
supported under Windows NT. For example, calling Interrupt 25h to read the
disk is not supported under Windows NT. Therefore, in some cases MS-DOS-
based applications will need to know whether or not they are running under
Windows NT.
Interrupt 21h, function 3306h can be used by MS-DOS-based applications to
detect whether or not they are running under Windows NT. On return,
registers BL and BH will contain the operating system major and minor
numbers, respectively. If your application is running under Windows NT, the
return will be:
BL = 5
BH = 50
Modification Type: | Major | Last Reviewed: | 1/16/2000 |
---|
Keywords: | KB100290 |
---|
|