Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getwinflags()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetWinFlags()
Return information about the Windows system
------------------------------------------------------------------------------

Syntax
GetWinFlags()   -->   nFlags

Arguments
None.

Returns
A bit-encoded number describing the Windows configuration.

Description
This function returns various Windows settings, bit-encoded
into one number.  The bits are defined by the WF_* values in
WINDOWS.CH.

Example
#define  IsBit( n, nBit )    ( ( int( n / nBit ) % 2 ) == 1 )
                             // .T. if set
nFlags = GetWinFlags()
?  "486 cpu: ", IsBit( nFlags, WF_CPU486 )
? "Enhanced mode: ", IsBit( nFlags, WF_ENHANCED )


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson