Article ID: 122353 - Last Review: December 9, 2003 - Revision: 2.0 How to Determine If a VB App is Running Under Windows NT 3.xThis article was previously published under Q122353 On This PageSUMMARY
There are some scenarios in which your program should behave differently
when running under Windows NT version 3.x instead of under Windows version
3.x. For example, an application based on Windows NT needs to handle
networking API calls differently. Therefore it is important to find out
whether or not your Visual Basic program is running under Windows NT. This
article shows you how.
MORE INFORMATION
A call to the Windows API GetWinFlags function returns a 32-bit value
representing the current system status. By performing a binary AND on this
flag with the hexadecimal value &h4000, you can determine whether the
underlying operating system is Windows NT version 3.x or not.
Step-by-Step Example
APPLIES TO
| Article Translations
|

Back to the top
