Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- OSLIB v1.05 - <b>ol_isos2()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 OL_IsOS2()
 Are we running under OS/2?
------------------------------------------------------------------------------

 Syntax

       OL_IsOS2() --> lOS2

 Arguments

      None.

 Returns

      .T. if we are running under OS/2, .F. if not.

 Description

      OL_IsOS2() can be used to test if we are running under OS/2.

 Examples

      // Sample function for returning the ID of the OS.

      Function OSId()
      Local nMajor := OL_OsMaj()
      Local nMinor := OL_OsMin()
      Local cMake  := "Dos "

         If OL_IsOS2()
            nMajor /= 10
            cMake  := "OS/2 Dos "
         EndIf

      Return( cMake + alltrim( str( nMajor ) ) + "." +;
                      alltrim( str( nMinor ) ) )


 Source: ISOS2.C

 Author: Dave Pearson

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