StdInHndl function

 

Usage:

Handle??? = StdInHndl

 

Legacy Syntax:

Handle??? = GETSTDIN

 

Pseudo-object Syntax:

Handle??? = CON.GETSTDIN

 

Gets the Windows API handle of the standard input 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 input as a file.

 

Redirection can cause the standard input handle to be different to the console keyboard handle. You can use ConStdIn to determine if redirection is in effect.

 

Conversion:

 

#IF %DEF(%PB_CC32)

  Handle??? = GETSTDIN

#ELSE

  Handle??? = StdInHndl

#ENDIF

 

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

 

See Also: ConStdIn, ConKbdHndl