StdErrHndl function

 

Usage:

Handle??? = StdErrHndl

 

Legacy Syntax:

Handle??? = GETSTDERR

 

Pseudo-object Syntax:

Handle??? = CON.GETSTDERR

 

Gets the Windows API handle of the standard error device.

 

It is normally only necessary to get this handle if you wish to use API functions. The returned handle can also be used with the OPEN HANDLE statement, if you wish to treat standard error as a file.

 

If not redirected, the standard error handle is equal to ConPageHndl(1) but redirection will cause the standard error handle to be different.

 

Conversion:

 

#IF %DEF(%PB_CC32)

  Handle??? = GETSTDERR

#ELSE

  Handle??? = StdErrHndl

#ENDIF

 

CON.GETSTDERR or CONSOLE.GETSTDERR may be substituted for GETSTDERR in programs written for PB/CC 6. The syntax " ... TO Handle???" may be used instead of "Handle??? = ..."

 

See Also: ConPageHndl