Article ID: 101893
Article Last Modified on 7/11/2005
Value Meaning
----------------------------------------------------------------
WF_80x87 System contains an Intel math coprocessor.
WF_CPU286 System CPU is an 80286.
WF_CPU386 System CPU is an 80386.
WF_CPU486 System CPU is an i486.
WF_ENHANCED Windows is running in 386-enhanced mode. The WF_PMODE
flag is always set when WF_ENHANCED is set.
WF_PAGING Windows is running on a system with paged memory.
WF_PMODE Windows is running in protected mode. In Windows 3.1,
this flag is always set.
WF_STANDARD Windows is running in standard mode. The WF_PMODE
flag is always set when WF_STANDARD is set.
WF_WIN286 Same as WF_STANDARD.
WF_WIN386 Same as WF_ENHANCED.
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.
int len;
char szBuf[80];
DWORD dwFlags;
dwFlags = GetWinFlags();
len = sprintf(szBuf, "system %s a coprocessor",
(dwFlags & WF_80x87) ? "contains" : "does not contain");
TextOut(hdc, 10, 15, szBuf, len);
len = sprintf(szBuf, "processor is an %s",
(dwFlags & WF_CPU286) ? "80286" :
(dwFlags & WF_CPU386) ? "80386" :
(dwFlags & WF_CPU486) ? "i486" : "unknown");
TextOut(hdc, 10, 30, szBuf, len);
len = sprintf(szBuf, "running in %s mode",
(dwFlags & WF_ENHANCED) ? "enhanced" : "standard");
TextOut(hdc, 10, 45, szBuf, len);
len = sprintf(szBuf, "%s WLO",
(dwFlags & WF_WLO) ? "using" : "not using");
TextOut(hdc, 10, 60, szBuf, len);
Additional query words: 3.10 3.50
Keywords: KB101893