_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Functions
SetupConsole_win32.cpp File Reference
#include <windows.h>
#include <stdio.h>
#include <io.h>
#include <errno.h>
#include <fcntl.h>
#include "SetupConsole_win32.h"

Functions

bool IsHandleConsole (HANDLE handle)
 
bool IsStdoutConsole ()
 
bool IsStderrConsole ()
 
bool IsHandleValid (HANDLE handle)
 
bool IsStreamValid (FILE *stream)
 
bool IsFdValid (int fd)
 
bool SetStreamAndFdFromStdConsole (FILE *stream, int fd, DWORD std, bool input)
 
void SetupConsole ()
 

Function Documentation

◆ IsFdValid()

bool IsFdValid ( int  fd)

◆ IsHandleConsole()

bool IsHandleConsole ( HANDLE  handle)

◆ IsHandleValid()

bool IsHandleValid ( HANDLE  handle)

◆ IsStderrConsole()

bool IsStderrConsole ( )

◆ IsStdoutConsole()

bool IsStdoutConsole ( )

◆ IsStreamValid()

bool IsStreamValid ( FILE *  stream)

◆ SetStreamAndFdFromStdConsole()

bool SetStreamAndFdFromStdConsole ( FILE *  stream,
int  fd,
DWORD  std,
bool  input 
)

◆ SetupConsole()

void SetupConsole ( )
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.