2005-05-08 17:44:37 +00:00
|
|
|
#ifndef _WINCON_H
|
|
|
|
#define _WINCON_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2011-09-04 12:08:54 +00:00
|
|
|
#if (_WIN32_WINNT >= 0x0600) && !defined(NOGDI)
|
|
|
|
# include "wingdi.h"
|
|
|
|
#endif
|
|
|
|
|
2009-06-17 11:18:51 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning(push)
|
|
|
|
#pragma warning(disable:4820)
|
|
|
|
#endif
|
|
|
|
|
2013-04-01 00:23:34 +00:00
|
|
|
/*
|
|
|
|
* Special PID for parent process for AttachConsole API
|
|
|
|
*/
|
|
|
|
#if (_WIN32_WINNT >= 0x0501)
|
|
|
|
#define ATTACH_PARENT_PROCESS ((DWORD)-1)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Console display modes
|
|
|
|
*/
|
2013-05-29 00:29:07 +00:00
|
|
|
// These codes are answered by GetConsoleDisplayMode
|
|
|
|
#define CONSOLE_WINDOWED 0
|
2013-04-01 00:23:34 +00:00
|
|
|
#define CONSOLE_FULLSCREEN 1
|
|
|
|
#if (_WIN32_WINNT >= 0x0600)
|
|
|
|
#define CONSOLE_OVERSTRIKE 1
|
|
|
|
#endif
|
2013-05-29 00:29:07 +00:00
|
|
|
#define CONSOLE_FULLSCREEN_HARDWARE 2
|
2013-04-01 00:23:34 +00:00
|
|
|
|
2013-05-29 00:29:07 +00:00
|
|
|
// These codes should be given to SetConsoleDisplayMode
|
2013-04-01 00:23:34 +00:00
|
|
|
#define CONSOLE_FULLSCREEN_MODE 1
|
|
|
|
#define CONSOLE_WINDOWED_MODE 2
|
|
|
|
|
2013-02-20 22:28:14 +00:00
|
|
|
/*
|
|
|
|
* Color attributes for text and screen background
|
|
|
|
*/
|
2013-04-01 00:23:34 +00:00
|
|
|
#define FOREGROUND_BLUE 0x0001
|
|
|
|
#define FOREGROUND_GREEN 0x0002
|
|
|
|
#define FOREGROUND_RED 0x0004
|
|
|
|
#define FOREGROUND_INTENSITY 0x0008
|
|
|
|
#define BACKGROUND_BLUE 0x0010
|
|
|
|
#define BACKGROUND_GREEN 0x0020
|
|
|
|
#define BACKGROUND_RED 0x0040
|
|
|
|
#define BACKGROUND_INTENSITY 0x0080
|
|
|
|
|
|
|
|
#define COMMON_LVB_LEADING_BYTE 0x0100
|
|
|
|
#define COMMON_LVB_TRAILING_BYTE 0x0200
|
|
|
|
#define COMMON_LVB_GRID_HORIZONTAL 0x0400
|
|
|
|
#define COMMON_LVB_GRID_LVERTICAL 0x0800
|
|
|
|
#define COMMON_LVB_GRID_RVERTICAL 0x1000
|
|
|
|
#define COMMON_LVB_REVERSE_VIDEO 0x4000
|
|
|
|
#define COMMON_LVB_UNDERSCORE 0x8000
|
2013-02-20 22:28:14 +00:00
|
|
|
|
2013-05-29 00:29:07 +00:00
|
|
|
/*
|
|
|
|
* Screen buffer types
|
|
|
|
*/
|
|
|
|
#define CONSOLE_TEXTMODE_BUFFER 1
|
|
|
|
#define CONSOLE_GRAPHICS_BUFFER 2 /* Undocumented, see http://blog.airesoft.co.uk/2012/10/things-ms-can-do-that-they-dont-tell-you-about-console-graphics/ */
|
|
|
|
|
2013-02-20 22:28:14 +00:00
|
|
|
/*
|
|
|
|
* Control handler codes
|
|
|
|
*/
|
2014-04-21 01:22:17 +00:00
|
|
|
#define CTRL_C_EVENT 0
|
|
|
|
#define CTRL_BREAK_EVENT 1
|
|
|
|
#define CTRL_CLOSE_EVENT 2
|
|
|
|
#define CTRL_LAST_CLOSE_EVENT 3 /* Undocumented */
|
|
|
|
#define CTRL_LOGOFF_EVENT 5
|
|
|
|
#define CTRL_SHUTDOWN_EVENT 6
|
2013-02-20 22:28:14 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Input mode flags
|
|
|
|
*/
|
2013-04-01 00:23:34 +00:00
|
|
|
#define ENABLE_PROCESSED_INPUT 0x0001
|
|
|
|
#define ENABLE_LINE_INPUT 0x0002
|
|
|
|
#define ENABLE_ECHO_INPUT 0x0004
|
|
|
|
#define ENABLE_WINDOW_INPUT 0x0008
|
|
|
|
#define ENABLE_MOUSE_INPUT 0x0010
|
|
|
|
#define ENABLE_INSERT_MODE 0x0020
|
|
|
|
#define ENABLE_QUICK_EDIT_MODE 0x0040
|
|
|
|
#define ENABLE_EXTENDED_FLAGS 0x0080
|
|
|
|
#if (_WIN32_WINNT >= 0x0600)
|
|
|
|
#define ENABLE_AUTO_POSITION 0x0100
|
|
|
|
#endif
|
2013-02-20 22:28:14 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Output mode flags
|
|
|
|
*/
|
2013-04-01 00:23:34 +00:00
|
|
|
#define ENABLE_PROCESSED_OUTPUT 0x0001
|
|
|
|
#define ENABLE_WRAP_AT_EOL_OUTPUT 0x0002
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Console selection flags
|
|
|
|
*/
|
|
|
|
#define CONSOLE_NO_SELECTION 0x0000
|
|
|
|
#define CONSOLE_SELECTION_IN_PROGRESS 0x0001
|
|
|
|
#define CONSOLE_SELECTION_NOT_EMPTY 0x0002
|
|
|
|
#define CONSOLE_MOUSE_SELECTION 0x0004
|
|
|
|
#define CONSOLE_MOUSE_DOWN 0x0008
|
|
|
|
|
|
|
|
/*
|
|
|
|
* History duplicate flags
|
|
|
|
*/
|
|
|
|
#if (_WIN32_WINNT >= 0x0600)
|
|
|
|
#define HISTORY_NO_DUP_FLAG 0x0001
|
|
|
|
#endif
|
2013-02-20 22:28:14 +00:00
|
|
|
|
2013-11-10 20:20:57 +00:00
|
|
|
/*
|
|
|
|
* Read input flags
|
|
|
|
*/
|
|
|
|
#define CONSOLE_READ_KEEPEVENT 0x0001
|
|
|
|
#define CONSOLE_READ_CONTINUE 0x0002
|
|
|
|
|
2013-03-30 22:54:47 +00:00
|
|
|
/*
|
|
|
|
* Event types
|
|
|
|
*/
|
|
|
|
#define KEY_EVENT 0x0001
|
|
|
|
#define MOUSE_EVENT 0x0002
|
|
|
|
#define WINDOW_BUFFER_SIZE_EVENT 0x0004
|
|
|
|
#define MENU_EVENT 0x0008
|
|
|
|
#define FOCUS_EVENT 0x0010
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ControlKeyState flags
|
|
|
|
*/
|
|
|
|
#define RIGHT_ALT_PRESSED 0x0001
|
|
|
|
#define LEFT_ALT_PRESSED 0x0002
|
|
|
|
#define RIGHT_CTRL_PRESSED 0x0004
|
|
|
|
#define LEFT_CTRL_PRESSED 0x0008
|
|
|
|
#define SHIFT_PRESSED 0x0010
|
|
|
|
#define NUMLOCK_ON 0x0020
|
|
|
|
#define SCROLLLOCK_ON 0x0040
|
|
|
|
#define CAPSLOCK_ON 0x0080
|
|
|
|
#define ENHANCED_KEY 0x0100
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ButtonState flags
|
|
|
|
*/
|
|
|
|
#define FROM_LEFT_1ST_BUTTON_PRESSED 0x0001
|
|
|
|
#define RIGHTMOST_BUTTON_PRESSED 0x0002
|
|
|
|
#define FROM_LEFT_2ND_BUTTON_PRESSED 0x0004
|
|
|
|
#define FROM_LEFT_3RD_BUTTON_PRESSED 0x0008
|
|
|
|
#define FROM_LEFT_4TH_BUTTON_PRESSED 0x0010
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Mouse event flags
|
|
|
|
*/
|
|
|
|
#define MOUSE_MOVED 0x0001
|
|
|
|
#define DOUBLE_CLICK 0x0002
|
|
|
|
#define MOUSE_WHEELED 0x0004
|
|
|
|
#if (_WIN32_WINNT >= 0x0600)
|
|
|
|
#define MOUSE_HWHEELED 0x0008
|
|
|
|
#endif
|
2005-05-08 17:44:37 +00:00
|
|
|
|
2006-12-12 23:52:02 +00:00
|
|
|
typedef struct _CONSOLE_READCONSOLE_CONTROL {
|
|
|
|
ULONG nLength;
|
|
|
|
ULONG nInitialChars;
|
|
|
|
ULONG dwCtrlWakeupMask;
|
|
|
|
ULONG dwControlKeyState;
|
|
|
|
} CONSOLE_READCONSOLE_CONTROL, *PCONSOLE_READCONSOLE_CONTROL;
|
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
typedef struct _CHAR_INFO {
|
2013-04-01 00:23:34 +00:00
|
|
|
union {
|
|
|
|
WCHAR UnicodeChar;
|
|
|
|
CHAR AsciiChar;
|
|
|
|
} Char;
|
|
|
|
WORD Attributes;
|
2005-05-08 17:44:37 +00:00
|
|
|
} CHAR_INFO,*PCHAR_INFO;
|
2013-05-29 00:29:07 +00:00
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
typedef struct _SMALL_RECT {
|
2013-04-01 00:23:34 +00:00
|
|
|
SHORT Left;
|
|
|
|
SHORT Top;
|
|
|
|
SHORT Right;
|
|
|
|
SHORT Bottom;
|
2005-05-08 17:44:37 +00:00
|
|
|
} SMALL_RECT,*PSMALL_RECT;
|
2013-05-29 00:29:07 +00:00
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
typedef struct _CONSOLE_CURSOR_INFO {
|
2013-04-01 00:23:34 +00:00
|
|
|
DWORD dwSize;
|
|
|
|
BOOL bVisible;
|
2005-05-08 17:44:37 +00:00
|
|
|
} CONSOLE_CURSOR_INFO,*PCONSOLE_CURSOR_INFO;
|
2013-05-29 00:29:07 +00:00
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
typedef struct _COORD {
|
2013-04-01 00:23:34 +00:00
|
|
|
SHORT X;
|
|
|
|
SHORT Y;
|
2006-12-12 23:52:02 +00:00
|
|
|
} COORD, *PCOORD;
|
2013-05-29 00:29:07 +00:00
|
|
|
|
2005-06-26 05:52:40 +00:00
|
|
|
typedef struct _CONSOLE_SELECTION_INFO {
|
2013-04-01 00:23:34 +00:00
|
|
|
DWORD dwFlags;
|
|
|
|
COORD dwSelectionAnchor;
|
|
|
|
SMALL_RECT srSelection;
|
2005-06-26 05:52:40 +00:00
|
|
|
} CONSOLE_SELECTION_INFO, *PCONSOLE_SELECTION_INFO;
|
2013-05-29 00:29:07 +00:00
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
typedef struct _CONSOLE_FONT_INFO {
|
2013-04-01 00:23:34 +00:00
|
|
|
DWORD nFont;
|
|
|
|
COORD dwFontSize;
|
2005-05-08 17:44:37 +00:00
|
|
|
} CONSOLE_FONT_INFO, *PCONSOLE_FONT_INFO;
|
2013-05-29 00:29:07 +00:00
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
typedef struct _CONSOLE_SCREEN_BUFFER_INFO {
|
2013-04-01 00:23:34 +00:00
|
|
|
COORD dwSize;
|
|
|
|
COORD dwCursorPosition;
|
|
|
|
WORD wAttributes;
|
|
|
|
SMALL_RECT srWindow;
|
|
|
|
COORD dwMaximumWindowSize;
|
2005-05-08 17:44:37 +00:00
|
|
|
} CONSOLE_SCREEN_BUFFER_INFO,*PCONSOLE_SCREEN_BUFFER_INFO;
|
2013-05-29 00:29:07 +00:00
|
|
|
|
|
|
|
/* Undocumented, see http://blog.airesoft.co.uk/2012/10/things-ms-can-do-that-they-dont-tell-you-about-console-graphics/ */
|
|
|
|
#if defined(_WINGDI_) && !defined(NOGDI)
|
|
|
|
typedef struct _CONSOLE_GRAPHICS_BUFFER_INFO {
|
|
|
|
DWORD dwBitMapInfoLength;
|
|
|
|
LPBITMAPINFO lpBitMapInfo;
|
|
|
|
DWORD dwUsage; // DIB_PAL_COLORS or DIB_RGB_COLORS
|
|
|
|
HANDLE hMutex;
|
|
|
|
PVOID lpBitMap;
|
|
|
|
} CONSOLE_GRAPHICS_BUFFER_INFO, *PCONSOLE_GRAPHICS_BUFFER_INFO;
|
|
|
|
#endif
|
|
|
|
|
2012-01-25 19:13:31 +00:00
|
|
|
typedef BOOL(CALLBACK *PHANDLER_ROUTINE)(_In_ DWORD);
|
2013-05-29 00:29:07 +00:00
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
typedef struct _KEY_EVENT_RECORD {
|
2013-04-01 00:23:34 +00:00
|
|
|
BOOL bKeyDown;
|
|
|
|
WORD wRepeatCount;
|
|
|
|
WORD wVirtualKeyCode;
|
|
|
|
WORD wVirtualScanCode;
|
|
|
|
union {
|
|
|
|
WCHAR UnicodeChar;
|
|
|
|
CHAR AsciiChar;
|
|
|
|
} uChar;
|
|
|
|
DWORD dwControlKeyState;
|
2005-05-09 01:50:07 +00:00
|
|
|
}
|
2005-05-08 17:44:37 +00:00
|
|
|
#ifdef __GNUC__
|
|
|
|
/* gcc's alignment is not what win32 expects */
|
2013-05-29 00:29:07 +00:00
|
|
|
PACKED
|
2005-05-08 17:44:37 +00:00
|
|
|
#endif
|
|
|
|
KEY_EVENT_RECORD;
|
2013-05-29 00:29:07 +00:00
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
typedef struct _MOUSE_EVENT_RECORD {
|
2013-04-01 00:23:34 +00:00
|
|
|
COORD dwMousePosition;
|
|
|
|
DWORD dwButtonState;
|
|
|
|
DWORD dwControlKeyState;
|
|
|
|
DWORD dwEventFlags;
|
2005-05-08 17:44:37 +00:00
|
|
|
} MOUSE_EVENT_RECORD;
|
2013-05-29 00:29:07 +00:00
|
|
|
|
|
|
|
typedef struct _WINDOW_BUFFER_SIZE_RECORD { COORD dwSize; } WINDOW_BUFFER_SIZE_RECORD;
|
|
|
|
typedef struct _MENU_EVENT_RECORD { UINT dwCommandId; } MENU_EVENT_RECORD,*PMENU_EVENT_RECORD;
|
2005-05-08 17:44:37 +00:00
|
|
|
typedef struct _FOCUS_EVENT_RECORD { BOOL bSetFocus; } FOCUS_EVENT_RECORD;
|
2013-05-29 00:29:07 +00:00
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
typedef struct _INPUT_RECORD {
|
2013-04-01 00:23:34 +00:00
|
|
|
WORD EventType;
|
|
|
|
union {
|
|
|
|
KEY_EVENT_RECORD KeyEvent;
|
|
|
|
MOUSE_EVENT_RECORD MouseEvent;
|
|
|
|
WINDOW_BUFFER_SIZE_RECORD WindowBufferSizeEvent;
|
|
|
|
MENU_EVENT_RECORD MenuEvent;
|
|
|
|
FOCUS_EVENT_RECORD FocusEvent;
|
|
|
|
} Event;
|
2005-05-08 17:44:37 +00:00
|
|
|
} INPUT_RECORD,*PINPUT_RECORD;
|
|
|
|
|
2005-08-25 19:47:44 +00:00
|
|
|
#if (_WIN32_WINNT >= 0x0600)
|
|
|
|
typedef struct _CONSOLE_HISTORY_INFO {
|
|
|
|
UINT cbSize;
|
|
|
|
UINT HistoryBufferSize;
|
|
|
|
UINT NumberOfHistoryBuffers;
|
|
|
|
DWORD dwFlags;
|
|
|
|
} CONSOLE_HISTORY_INFO, *PCONSOLE_HISTORY_INFO;
|
|
|
|
|
|
|
|
typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX {
|
|
|
|
ULONG cbSize;
|
|
|
|
COORD dwSize;
|
|
|
|
COORD dwCursorPosition;
|
|
|
|
WORD wAttributes;
|
|
|
|
SMALL_RECT srWindow;
|
|
|
|
COORD dwMaximumWindowSize;
|
|
|
|
WORD wPopupAttributes;
|
|
|
|
COLORREF ColorTable[16];
|
|
|
|
} CONSOLE_SCREEN_BUFFER_INFOEX, *PCONSOLE_SCREEN_BUFFER_INFOEX;
|
|
|
|
|
2011-09-04 14:09:14 +00:00
|
|
|
#ifndef NOGDI
|
2005-08-25 19:47:44 +00:00
|
|
|
typedef struct _CONSOLE_FONT_INFOEX {
|
|
|
|
ULONG cbSize;
|
|
|
|
DWORD nFont;
|
|
|
|
COORD dwFontSize;
|
|
|
|
UINT FontFamily;
|
|
|
|
UINT FontWeight;
|
|
|
|
WCHAR FaceName[LF_FACESIZE];
|
|
|
|
} CONSOLE_FONT_INFOEX, *PCONSOLE_FONT_INFOEX;
|
|
|
|
#endif
|
2011-09-04 14:09:14 +00:00
|
|
|
#endif
|
2005-08-25 19:47:44 +00:00
|
|
|
|
2013-02-20 22:28:14 +00:00
|
|
|
BOOL WINAPI AllocConsole(VOID);
|
|
|
|
|
2005-08-25 19:47:44 +00:00
|
|
|
#if (_WIN32_WINNT >= 0x0501)
|
2012-01-25 19:13:31 +00:00
|
|
|
BOOL WINAPI AttachConsole(_In_ DWORD);
|
2013-02-20 22:28:14 +00:00
|
|
|
|
2012-01-25 19:13:31 +00:00
|
|
|
BOOL WINAPI AddConsoleAliasA(_In_ LPCSTR, _In_ LPCSTR, _In_ LPCSTR);
|
|
|
|
BOOL WINAPI AddConsoleAliasW(_In_ LPCWSTR, _In_ LPCWSTR, _In_ LPCWSTR);
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
WINAPI
|
|
|
|
GetConsoleAliasA(
|
|
|
|
_In_ LPSTR Source,
|
|
|
|
_Out_writes_(TargetBufferLength) LPSTR TargetBuffer,
|
|
|
|
_In_ DWORD TargetBufferLength,
|
|
|
|
_In_ LPSTR ExeName);
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
WINAPI
|
|
|
|
GetConsoleAliasW(
|
|
|
|
_In_ LPWSTR Source,
|
|
|
|
_Out_writes_(TargetBufferLength) LPWSTR TargetBuffer,
|
|
|
|
_In_ DWORD TargetBufferLength,
|
|
|
|
_In_ LPWSTR ExeName);
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
WINAPI
|
|
|
|
GetConsoleAliasesA(
|
|
|
|
_Out_writes_(AliasBufferLength) LPSTR AliasBuffer,
|
|
|
|
_In_ DWORD AliasBufferLength,
|
|
|
|
_In_ LPSTR ExeName);
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
WINAPI
|
|
|
|
GetConsoleAliasesW(
|
|
|
|
_Out_writes_(AliasBufferLength) LPWSTR AliasBuffer,
|
|
|
|
_In_ DWORD AliasBufferLength,
|
|
|
|
_In_ LPWSTR ExeName);
|
|
|
|
|
2013-02-20 22:28:14 +00:00
|
|
|
DWORD WINAPI GetConsoleAliasesLengthA(_In_ LPSTR ExeName);
|
|
|
|
DWORD WINAPI GetConsoleAliasesLengthW(_In_ LPWSTR ExeName);
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
WINAPI
|
|
|
|
GetConsoleAliasExesA(
|
|
|
|
_Out_writes_(ExeNameBufferLength) LPSTR ExeNameBuffer,
|
|
|
|
_In_ DWORD ExeNameBufferLength);
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
WINAPI
|
|
|
|
GetConsoleAliasExesW(
|
|
|
|
_Out_writes_(ExeNameBufferLength) LPWSTR ExeNameBuffer,
|
|
|
|
_In_ DWORD ExeNameBufferLength);
|
|
|
|
|
|
|
|
DWORD WINAPI GetConsoleAliasExesLengthA(VOID);
|
|
|
|
DWORD WINAPI GetConsoleAliasExesLengthW(VOID);
|
2005-05-08 17:44:37 +00:00
|
|
|
#endif
|
2013-02-20 22:28:14 +00:00
|
|
|
|
2013-08-17 17:20:57 +00:00
|
|
|
HANDLE
|
|
|
|
WINAPI
|
|
|
|
CreateConsoleScreenBuffer(
|
|
|
|
_In_ DWORD,
|
|
|
|
_In_ DWORD,
|
|
|
|
_In_opt_ CONST SECURITY_ATTRIBUTES*,
|
|
|
|
_In_ DWORD,
|
|
|
|
_Reserved_ LPVOID);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
FillConsoleOutputAttribute(
|
|
|
|
_In_ HANDLE,
|
|
|
|
_In_ WORD,
|
|
|
|
_In_ DWORD,
|
|
|
|
_In_ COORD,
|
|
|
|
_Out_ PDWORD);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
FillConsoleOutputCharacterA(
|
|
|
|
_In_ HANDLE,
|
|
|
|
_In_ CHAR,
|
|
|
|
_In_ DWORD,
|
|
|
|
_In_ COORD,
|
|
|
|
_Out_ PDWORD);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
FillConsoleOutputCharacterW(
|
|
|
|
_In_ HANDLE,
|
|
|
|
_In_ WCHAR,
|
|
|
|
_In_ DWORD,
|
|
|
|
_In_ COORD,
|
|
|
|
_Out_ PDWORD);
|
|
|
|
|
2012-01-25 19:13:31 +00:00
|
|
|
BOOL WINAPI FlushConsoleInputBuffer(_In_ HANDLE);
|
2013-02-20 22:28:14 +00:00
|
|
|
BOOL WINAPI FreeConsole(VOID);
|
2012-01-25 19:13:31 +00:00
|
|
|
BOOL WINAPI GenerateConsoleCtrlEvent(_In_ DWORD, _In_ DWORD);
|
2013-02-20 22:28:14 +00:00
|
|
|
UINT WINAPI GetConsoleCP(VOID);
|
2012-01-25 19:13:31 +00:00
|
|
|
BOOL WINAPI GetConsoleCursorInfo(_In_ HANDLE, _Out_ PCONSOLE_CURSOR_INFO);
|
2013-08-17 17:20:57 +00:00
|
|
|
BOOL WINAPI GetConsoleMode(_In_ HANDLE, _Out_ PDWORD);
|
2013-02-20 22:28:14 +00:00
|
|
|
UINT WINAPI GetConsoleOutputCP(VOID);
|
2013-08-17 17:20:57 +00:00
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
GetConsoleScreenBufferInfo(
|
|
|
|
_In_ HANDLE,
|
|
|
|
_Out_ PCONSOLE_SCREEN_BUFFER_INFO);
|
2012-01-25 19:13:31 +00:00
|
|
|
|
2013-05-29 00:29:07 +00:00
|
|
|
/* Undocumented, see http://blog.airesoft.co.uk/2012/10/things-ms-can-do-that-they-dont-tell-you-about-console-graphics/ */
|
|
|
|
BOOL WINAPI InvalidateConsoleDIBits(_In_ HANDLE, _In_ PSMALL_RECT);
|
|
|
|
|
2012-01-25 19:13:31 +00:00
|
|
|
DWORD
|
|
|
|
WINAPI
|
|
|
|
GetConsoleTitleA(
|
|
|
|
_Out_writes_(nSize) LPSTR lpConsoleTitle,
|
|
|
|
_In_ DWORD nSize);
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
WINAPI
|
|
|
|
GetConsoleTitleW(
|
|
|
|
_Out_writes_(nSize) LPWSTR lpConsoleTitle,
|
|
|
|
_In_ DWORD nSize);
|
|
|
|
|
2013-06-16 21:35:18 +00:00
|
|
|
COORD
|
|
|
|
WINAPI
|
|
|
|
GetConsoleFontSize(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_In_ DWORD nFont);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
GetCurrentConsoleFont(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_In_ BOOL bMaximumWindow,
|
|
|
|
_Out_ PCONSOLE_FONT_INFO lpConsoleCurrentFont);
|
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
#if (_WIN32_WINNT >= 0x0500)
|
2013-08-17 17:20:57 +00:00
|
|
|
|
2013-02-20 22:28:14 +00:00
|
|
|
HWND WINAPI GetConsoleWindow(VOID);
|
2014-03-08 15:31:05 +00:00
|
|
|
BOOL WINAPI GetConsoleDisplayMode(_Out_ LPDWORD lpModeFlags);
|
2013-08-17 17:20:57 +00:00
|
|
|
|
|
|
|
BOOL
|
2014-03-08 15:31:05 +00:00
|
|
|
WINAPI
|
2013-08-17 17:20:57 +00:00
|
|
|
SetConsoleDisplayMode(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_In_ DWORD dwFlags,
|
|
|
|
_Out_opt_ PCOORD lpNewScreenBufferDimensions);
|
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
#endif
|
2013-08-17 17:20:57 +00:00
|
|
|
|
2012-01-25 19:13:31 +00:00
|
|
|
COORD WINAPI GetLargestConsoleWindowSize(_In_ HANDLE);
|
2013-08-17 17:20:57 +00:00
|
|
|
BOOL WINAPI GetNumberOfConsoleInputEvents(_In_ HANDLE, _Out_ PDWORD);
|
2012-01-25 19:13:31 +00:00
|
|
|
BOOL WINAPI GetNumberOfConsoleMouseButtons(_Out_ PDWORD);
|
2013-05-29 00:29:07 +00:00
|
|
|
|
2013-11-10 20:20:57 +00:00
|
|
|
_Success_(return != 0)
|
2013-08-17 17:20:57 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI PeekConsoleInputA(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_Out_writes_(nLength) PINPUT_RECORD lpBuffer,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_Out_ LPDWORD lpNumberOfEventsRead);
|
2012-01-25 19:13:31 +00:00
|
|
|
|
2013-11-10 20:20:57 +00:00
|
|
|
_Success_(return != 0)
|
2012-01-25 19:13:31 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
PeekConsoleInputW(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_Out_writes_(nLength) PINPUT_RECORD lpBuffer,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_Out_ LPDWORD lpNumberOfEventsRead);
|
|
|
|
|
2013-08-17 17:20:57 +00:00
|
|
|
_Success_(return != 0)
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ReadConsoleA(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_Out_writes_bytes_to_(nNumberOfCharsToRead * sizeof(CHAR), *lpNumberOfCharsRead * sizeof(CHAR)) LPVOID lpBuffer,
|
|
|
|
_In_ DWORD nNumberOfCharsToRead,
|
|
|
|
_Out_ _Deref_out_range_(<= , nNumberOfCharsToRead) LPDWORD lpNumberOfCharsRead,
|
|
|
|
_In_opt_ PCONSOLE_READCONSOLE_CONTROL pInputControl);
|
|
|
|
|
|
|
|
_Success_(return != 0)
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ReadConsoleW(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_Out_writes_bytes_to_(nNumberOfCharsToRead * sizeof(WCHAR), *lpNumberOfCharsRead * sizeof(WCHAR)) LPVOID lpBuffer,
|
|
|
|
_In_ DWORD nNumberOfCharsToRead,
|
|
|
|
_Out_ _Deref_out_range_(<= , nNumberOfCharsToRead) LPDWORD lpNumberOfCharsRead,
|
|
|
|
_In_opt_ PCONSOLE_READCONSOLE_CONTROL pInputControl);
|
|
|
|
|
|
|
|
_Success_(return != 0)
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ReadConsoleInputA(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_Out_writes_to_(nLength, *lpNumberOfEventsRead) PINPUT_RECORD lpBuffer,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_Out_ _Deref_out_range_(<= , nLength) LPDWORD lpNumberOfEventsRead);
|
|
|
|
|
|
|
|
_Success_(return != 0)
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ReadConsoleInputW(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_Out_writes_to_(nLength, *lpNumberOfEventsRead) PINPUT_RECORD lpBuffer,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_Out_ _Deref_out_range_(<= , nLength) LPDWORD lpNumberOfEventsRead);
|
2012-01-25 19:13:31 +00:00
|
|
|
|
2013-11-10 20:20:57 +00:00
|
|
|
_Success_(return != 0)
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ReadConsoleInputExA(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_Out_writes_to_(nLength, *lpNumberOfEventsRead) PINPUT_RECORD lpBuffer,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_Out_ _Deref_out_range_(<= , nLength) LPDWORD lpNumberOfEventsRead,
|
|
|
|
_In_ WORD wFlags);
|
|
|
|
|
|
|
|
_Success_(return != 0)
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ReadConsoleInputExW(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_Out_writes_to_(nLength, *lpNumberOfEventsRead) PINPUT_RECORD lpBuffer,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_Out_ _Deref_out_range_(<= , nLength) LPDWORD lpNumberOfEventsRead,
|
|
|
|
_In_ WORD wFlags);
|
|
|
|
|
2012-01-25 19:13:31 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ReadConsoleOutputAttribute(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_Out_writes_(nLength) LPWORD lpAttribute,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_In_ COORD dwReadCoord,
|
|
|
|
_Out_ LPDWORD lpNumberOfAttrsRead);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ReadConsoleOutputCharacterA(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_Out_writes_(nLength) LPSTR lpCharacter,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_In_ COORD dwReadCoord,
|
|
|
|
_Out_ LPDWORD lpNumberOfCharsRead);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ReadConsoleOutputCharacterW(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_Out_writes_(nLength) LPWSTR lpCharacter,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_In_ COORD dwReadCoord,
|
|
|
|
_Out_ LPDWORD lpNumberOfCharsRead);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ReadConsoleOutputA(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_Out_writes_(dwBufferSize.X * dwBufferSize.Y) PCHAR_INFO lpBuffer,
|
|
|
|
_In_ COORD dwBufferSize,
|
|
|
|
_In_ COORD dwBufferCoord,
|
|
|
|
_Inout_ PSMALL_RECT lpReadRegion);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ReadConsoleOutputW(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_Out_writes_(dwBufferSize.X * dwBufferSize.Y) PCHAR_INFO lpBuffer,
|
|
|
|
_In_ COORD dwBufferSize,
|
|
|
|
_In_ COORD dwBufferCoord,
|
|
|
|
_Inout_ PSMALL_RECT lpReadRegion);
|
|
|
|
|
2013-08-17 17:20:57 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ScrollConsoleScreenBufferA(
|
|
|
|
_In_ HANDLE,
|
|
|
|
_In_ const SMALL_RECT*,
|
|
|
|
_In_opt_ const SMALL_RECT*,
|
|
|
|
_In_ COORD,
|
|
|
|
_In_ const CHAR_INFO*);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
ScrollConsoleScreenBufferW(
|
|
|
|
_In_ HANDLE,
|
|
|
|
_In_ const SMALL_RECT*,
|
|
|
|
_In_opt_ const SMALL_RECT*,
|
|
|
|
_In_ COORD,
|
|
|
|
_In_ const CHAR_INFO*);
|
|
|
|
|
2012-01-25 19:13:31 +00:00
|
|
|
BOOL WINAPI SetConsoleActiveScreenBuffer(_In_ HANDLE);
|
|
|
|
BOOL WINAPI SetConsoleCP(_In_ UINT);
|
2013-08-17 17:20:57 +00:00
|
|
|
BOOL WINAPI SetConsoleCtrlHandler(_In_opt_ PHANDLER_ROUTINE, _In_ BOOL);
|
2012-01-25 19:13:31 +00:00
|
|
|
BOOL WINAPI SetConsoleCursorInfo(_In_ HANDLE, _In_ const CONSOLE_CURSOR_INFO*);
|
|
|
|
BOOL WINAPI SetConsoleCursorPosition(_In_ HANDLE, _In_ COORD);
|
2013-08-17 17:20:57 +00:00
|
|
|
BOOL WINAPI SetConsoleMode(_In_ HANDLE, _In_ DWORD);
|
2012-01-25 19:13:31 +00:00
|
|
|
BOOL WINAPI SetConsoleOutputCP(_In_ UINT);
|
|
|
|
BOOL WINAPI SetConsoleScreenBufferSize(_In_ HANDLE, _In_ COORD);
|
|
|
|
BOOL WINAPI SetConsoleTextAttribute(_In_ HANDLE, _In_ WORD);
|
|
|
|
BOOL WINAPI SetConsoleTitleA(_In_ LPCSTR);
|
|
|
|
BOOL WINAPI SetConsoleTitleW(_In_ LPCWSTR);
|
2013-08-17 17:20:57 +00:00
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
SetConsoleWindowInfo(
|
|
|
|
_In_ HANDLE,
|
|
|
|
_In_ BOOL,
|
|
|
|
_In_ const SMALL_RECT*);
|
2013-05-30 00:50:03 +00:00
|
|
|
|
|
|
|
/* Undocumented, see http://undoc.airesoft.co.uk/kernel32.dll/ConsoleMenuControl.php */
|
|
|
|
HMENU WINAPI ConsoleMenuControl(_In_ HANDLE, _In_ DWORD, _In_ DWORD);
|
|
|
|
/* Undocumented */
|
|
|
|
BOOL WINAPI SetConsoleMenuClose(_In_ BOOL);
|
2013-06-01 22:49:50 +00:00
|
|
|
/* Undocumented, see http://undoc.airesoft.co.uk/kernel32.dll/SetConsoleCursor.php */
|
|
|
|
BOOL WINAPI SetConsoleCursor(_In_ HANDLE, _In_ HCURSOR);
|
|
|
|
/* Undocumented, see http://undoc.airesoft.co.uk/kernel32.dll/ShowConsoleCursor.php */
|
|
|
|
INT WINAPI ShowConsoleCursor(_In_ HANDLE, _In_ BOOL);
|
2014-03-08 15:31:05 +00:00
|
|
|
/* Undocumented */
|
|
|
|
BOOL WINAPI SetConsoleIcon(_In_ HICON);
|
2013-08-11 17:06:19 +00:00
|
|
|
/* Undocumented, see http://comments.gmane.org/gmane.comp.lang.harbour.devel/27844 */
|
|
|
|
BOOL WINAPI SetConsolePalette(_In_ HANDLE, _In_ HPALETTE, _In_ UINT);
|
2014-03-08 15:31:05 +00:00
|
|
|
/* Undocumented */
|
|
|
|
BOOL WINAPI CloseConsoleHandle(_In_ HANDLE);
|
|
|
|
// HANDLE WINAPI GetStdHandle(_In_ DWORD);
|
|
|
|
// BOOL WINAPI SetStdHandle(_In_ DWORD, _In_ HANDLE);
|
|
|
|
/* Undocumented */
|
|
|
|
BOOL WINAPI VerifyConsoleIoHandle(_In_ HANDLE);
|
2013-05-30 00:50:03 +00:00
|
|
|
|
2013-08-17 17:20:57 +00:00
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
WriteConsoleA(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_In_reads_(nNumberOfCharsToWrite) CONST VOID *lpBuffer,
|
|
|
|
_In_ DWORD nNumberOfCharsToWrite,
|
|
|
|
_Out_opt_ LPDWORD lpNumberOfCharsWritten,
|
|
|
|
_Reserved_ LPVOID lpReserved);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
WriteConsoleW(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_In_reads_(nNumberOfCharsToWrite) CONST VOID *lpBuffer,
|
|
|
|
_In_ DWORD nNumberOfCharsToWrite,
|
|
|
|
_Out_opt_ LPDWORD lpNumberOfCharsWritten,
|
|
|
|
_Reserved_ LPVOID lpReserved);
|
2012-01-25 19:13:31 +00:00
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
WriteConsoleInputA(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_In_reads_(nLength) CONST INPUT_RECORD *lpBuffer,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_Out_ LPDWORD lpNumberOfEventsWritten);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
WriteConsoleInputW(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_In_reads_(nLength) CONST INPUT_RECORD *lpBuffer,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_Out_ LPDWORD lpNumberOfEventsWritten);
|
2013-10-26 20:53:05 +00:00
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
WriteConsoleInputVDMA(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_In_reads_(nLength) CONST INPUT_RECORD *lpBuffer,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_Out_ LPDWORD lpNumberOfEventsWritten);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
WriteConsoleInputVDMW(
|
|
|
|
_In_ HANDLE hConsoleInput,
|
|
|
|
_In_reads_(nLength) CONST INPUT_RECORD *lpBuffer,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_Out_ LPDWORD lpNumberOfEventsWritten);
|
2012-01-25 19:13:31 +00:00
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
WriteConsoleOutputA(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_In_reads_(dwBufferSize.X * dwBufferSize.Y) CONST CHAR_INFO *lpBuffer,
|
|
|
|
_In_ COORD dwBufferSize,
|
|
|
|
_In_ COORD dwBufferCoord,
|
|
|
|
_Inout_ PSMALL_RECT lpWriteRegion);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
WriteConsoleOutputW(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_In_reads_(dwBufferSize.X * dwBufferSize.Y) CONST CHAR_INFO *lpBuffer,
|
|
|
|
_In_ COORD dwBufferSize,
|
|
|
|
_In_ COORD dwBufferCoord,
|
|
|
|
_Inout_ PSMALL_RECT lpWriteRegion);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
WriteConsoleOutputAttribute(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_In_reads_(nLength) CONST WORD *lpAttribute,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_In_ COORD dwWriteCoord,
|
|
|
|
_Out_ LPDWORD lpNumberOfAttrsWritten);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
WriteConsoleOutputCharacterA(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_In_reads_(nLength) LPCSTR lpCharacter,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_In_ COORD dwWriteCoord,
|
|
|
|
_Out_ LPDWORD lpNumberOfCharsWritten);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
WINAPI
|
|
|
|
WriteConsoleOutputCharacterW(
|
|
|
|
_In_ HANDLE hConsoleOutput,
|
|
|
|
_In_reads_(nLength) LPCWSTR lpCharacter,
|
|
|
|
_In_ DWORD nLength,
|
|
|
|
_In_ COORD dwWriteCoord,
|
|
|
|
_Out_ LPDWORD lpNumberOfCharsWritten);
|
2005-05-08 17:44:37 +00:00
|
|
|
|
2011-11-12 08:15:29 +00:00
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
#ifdef UNICODE
|
2008-02-02 21:06:53 +00:00
|
|
|
#define AddConsoleAlias AddConsoleAliasW
|
|
|
|
#define GetConsoleAlias GetConsoleAliasW
|
|
|
|
#define GetConsoleAliases GetConsoleAliasesW
|
|
|
|
#define GetConsoleAliasesLength GetConsoleAliasesLengthW
|
2013-02-20 22:28:14 +00:00
|
|
|
#define GetConsoleAliasExes GetConsoleAliasExesW
|
|
|
|
#define GetConsoleAliasExesLength GetConsoleAliasExesLengthW
|
2005-05-08 17:44:37 +00:00
|
|
|
#define GetConsoleTitle GetConsoleTitleW
|
|
|
|
#define PeekConsoleInput PeekConsoleInputW
|
|
|
|
#define ReadConsole ReadConsoleW
|
|
|
|
#define ReadConsoleInput ReadConsoleInputW
|
2013-11-10 20:25:05 +00:00
|
|
|
#define ReadConsoleInputEx ReadConsoleInputExW
|
2005-05-08 17:44:37 +00:00
|
|
|
#define ReadConsoleOutput ReadConsoleOutputW
|
|
|
|
#define ReadConsoleOutputCharacter ReadConsoleOutputCharacterW
|
|
|
|
#define ScrollConsoleScreenBuffer ScrollConsoleScreenBufferW
|
|
|
|
#define SetConsoleTitle SetConsoleTitleW
|
|
|
|
#define WriteConsole WriteConsoleW
|
|
|
|
#define WriteConsoleInput WriteConsoleInputW
|
2013-10-26 21:30:44 +00:00
|
|
|
#define WriteConsoleInputVDM WriteConsoleInputVDMW
|
2005-05-08 17:44:37 +00:00
|
|
|
#define WriteConsoleOutput WriteConsoleOutputW
|
2013-02-20 22:28:14 +00:00
|
|
|
#define FillConsoleOutputCharacter FillConsoleOutputCharacterW
|
2005-05-08 17:44:37 +00:00
|
|
|
#define WriteConsoleOutputCharacter WriteConsoleOutputCharacterW
|
|
|
|
#else
|
2008-02-02 21:06:53 +00:00
|
|
|
#define AddConsoleAlias AddConsoleAliasA
|
|
|
|
#define GetConsoleAlias GetConsoleAliasA
|
|
|
|
#define GetConsoleAliases GetConsoleAliasesA
|
|
|
|
#define GetConsoleAliasesLength GetConsoleAliasesLengthA
|
2013-02-20 22:28:14 +00:00
|
|
|
#define GetConsoleAliasExes GetConsoleAliasExesA
|
|
|
|
#define GetConsoleAliasExesLength GetConsoleAliasExesLengthA
|
2005-05-08 17:44:37 +00:00
|
|
|
#define GetConsoleTitle GetConsoleTitleA
|
|
|
|
#define PeekConsoleInput PeekConsoleInputA
|
|
|
|
#define ReadConsole ReadConsoleA
|
|
|
|
#define ReadConsoleInput ReadConsoleInputA
|
2013-11-10 20:25:05 +00:00
|
|
|
#define ReadConsoleInputEx ReadConsoleInputExA
|
2005-05-08 17:44:37 +00:00
|
|
|
#define ReadConsoleOutput ReadConsoleOutputA
|
|
|
|
#define ReadConsoleOutputCharacter ReadConsoleOutputCharacterA
|
|
|
|
#define ScrollConsoleScreenBuffer ScrollConsoleScreenBufferA
|
|
|
|
#define SetConsoleTitle SetConsoleTitleA
|
|
|
|
#define WriteConsole WriteConsoleA
|
|
|
|
#define WriteConsoleInput WriteConsoleInputA
|
2013-10-26 21:30:44 +00:00
|
|
|
#define WriteConsoleInputVDM WriteConsoleInputVDMA
|
2005-05-08 17:44:37 +00:00
|
|
|
#define WriteConsoleOutput WriteConsoleOutputA
|
2013-02-20 22:28:14 +00:00
|
|
|
#define FillConsoleOutputCharacter FillConsoleOutputCharacterA
|
2005-05-08 17:44:37 +00:00
|
|
|
#define WriteConsoleOutputCharacter WriteConsoleOutputCharacterA
|
|
|
|
#endif
|
|
|
|
|
2009-06-17 11:18:51 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning(pop)
|
|
|
|
#endif
|
|
|
|
|
2005-05-08 17:44:37 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2013-08-17 17:20:57 +00:00
|
|
|
|
|
|
|
#endif /* _WINCON_H */
|