_CONSOLEB returns the handle to the active console screen buffer.

 

See also @CONSOLEB.