The information in this article applies to:
SUMMARYWindows NT and Windows NT Advanced Server will run a Windows 3.1 application in 386 enhanced mode on X86 machines (standard mode on RISC machines). The proper way to determine whether a Windows 3.1 application is in enhanced mode is to call GetWinFlags() and do a bit test for WF_ENHANCED. This method is described on pages 486-487 in the Windows 3.1 Software Development Kit (SDK) "Programmer's Reference, Volume 2: Functions." MORE INFORMATIONCalling Interrupt 2F with AX=1600hThis method, which is described in the Windows 3.1 Device Development Kit (DDK) checks to see whether a 386 memory manager is running. If Windows 3.1 is running in enhanced mode, it returns AL = 3 and 2 for standard mode. Windows NT's WOW (Windows 16 on Windows NT) returns AL=0, which means enhanced mode Windows is not running.DWORD GetWinFlags()The GetWinFlags() function retrieves the current Windows system and memory configuration.The configuration returned by GetWinFlags() can be a combination of the following values:
NOTE: When running in Windows NT, WF_WINNT will also be returned to tell
the 16-bit Windows-based application that you are running in Windows NT.
Example: The following example uses the GetWinFlags() function to display information about the current Windows system configuration: Sample Code
Additional query words: 3.10 3.50
Keywords : |
Last Reviewed: January 10, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |