Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . Technical Reference - <b>_errgetoscode()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _errGetOsCode()
 Get the value of osCode
------------------------------------------------------------------------------
 C Prototype

     #include "error.api"
     USHORT _errGetOsCode(
                           ERRORP pError
                         )

 Arguments

     pError is a pointer to the Error object from which the value is to
     be retrieved.

 Returns

     _errGetOsCode() returns the current value of osCode.

 Description

     _errGetOsCode() retrieves the value representing an operating system
     specific error code.  This code currently corresponds to the DOS Error
     Number since CA-Clipper presently will run only under the DOS operating
     system, a DOS window in Windows or OS/2, or a DOS emulator in other
     operating systems.

 Examples

     .  This code fragment retrieves the contents of osCode:

        #include "error.api"
           .
           .
           .
           USHORT uiOsCode;
           uiOsCode = _errGetOsCode( pError );
           .
           .
           .

 Files:  Library is CLIPPER.LIB, header file is Error.api.


See Also: _errPutOsCode()

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