1/* 2 Title: Poly/ML Console Window. 3 4 Copyright (c) 2019 David C. J. Matthews 5 6 This library is free software; you can redistribute it and/or 7 modify it under the terms of the GNU Lesser General Public 8 License version 2.1 as published by the Free Software Foundation. 9 10 This library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with this library; if not, write to the Free Software 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 19*/ 20 21#ifndef _WINGUICONSOLE_H 22#define _WINGUICONSOLE_H 23 24#include <windows.h> 25class WinStream; 26 27extern HWND hMainWindow; /* Handle to main window - NULL if none. */ 28// Create the console window and return the handle to stream used to 29// write to it. 30HANDLE createConsoleWindow(int nCmdShow); 31// Create a stream that can read from the console. 32extern WinStream *createConsoleStream(); 33#endif 34