mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
- added stubs for Set/GetConsoleHistoryInfo(), GetConsoleOriginalTitleA/W(), Set/GetConsoleScreenBufferInfoEx() and GetCurrentConsoleFontEx()
- added missing structure definitions svn path=/trunk/; revision=17543
This commit is contained in:
parent
362610233e
commit
eafb1ee3f7
10 changed files with 145 additions and 11 deletions
|
@ -5,7 +5,7 @@
|
||||||
<define name="_UNICODE" />
|
<define name="_UNICODE" />
|
||||||
<define name="__USE_W32API" />
|
<define name="__USE_W32API" />
|
||||||
<define name="_WIN32_IE">0x0500</define>
|
<define name="_WIN32_IE">0x0500</define>
|
||||||
<define name="_WIN32_WINNT">0x501</define>
|
<define name="_WIN32_WINNT">0x0600</define>
|
||||||
<define name="WINVER">0x0600</define>
|
<define name="WINVER">0x0600</define>
|
||||||
<library>ntdll</library>
|
<library>ntdll</library>
|
||||||
<library>kernel32</library>
|
<library>kernel32</library>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<define name="__USE_W32API" />
|
<define name="__USE_W32API" />
|
||||||
<define name="WINVER">0x600</define>
|
<define name="WINVER">0x600</define>
|
||||||
<define name="_WIN32_IE">0x0500</define>
|
<define name="_WIN32_IE">0x0500</define>
|
||||||
<define name="_WIN32_WINNT">0x0501</define>
|
<define name="_WIN32_WINNT">0x0600</define>
|
||||||
<library>scm_client</library>
|
<library>scm_client</library>
|
||||||
<library>ntdll</library>
|
<library>ntdll</library>
|
||||||
<library>kernel32</library>
|
<library>kernel32</library>
|
||||||
|
|
|
@ -773,6 +773,7 @@ SetConsoleCursorPosition@8
|
||||||
SetConsoleDisplayMode@12
|
SetConsoleDisplayMode@12
|
||||||
SetConsoleFont@8
|
SetConsoleFont@8
|
||||||
SetConsoleHardwareState@12
|
SetConsoleHardwareState@12
|
||||||
|
SetConsoleHistoryInfo@4
|
||||||
SetConsoleIcon@4
|
SetConsoleIcon@4
|
||||||
SetConsoleInputExeNameA@4
|
SetConsoleInputExeNameA@4
|
||||||
SetConsoleInputExeNameW@4
|
SetConsoleInputExeNameW@4
|
||||||
|
@ -787,6 +788,7 @@ SetConsoleNumberOfCommandsW@8
|
||||||
;SetConsoleOS2OemFormat
|
;SetConsoleOS2OemFormat
|
||||||
SetConsoleOutputCP@4
|
SetConsoleOutputCP@4
|
||||||
SetConsolePalette@12
|
SetConsolePalette@12
|
||||||
|
SetConsoleScreenBufferInfoEx@8
|
||||||
SetConsoleScreenBufferSize@8
|
SetConsoleScreenBufferSize@8
|
||||||
SetConsoleTextAttribute@8
|
SetConsoleTextAttribute@8
|
||||||
SetConsoleTitleA@4
|
SetConsoleTitleA@4
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<define name="_DISABLE_TIDENTS" />
|
<define name="_DISABLE_TIDENTS" />
|
||||||
<define name="_SEH_NO_NATIVE_NLG" />
|
<define name="_SEH_NO_NATIVE_NLG" />
|
||||||
<define name="__USE_W32API" />
|
<define name="__USE_W32API" />
|
||||||
<define name="_WIN32_WINNT">0x0502</define>
|
<define name="_WIN32_WINNT">0x0600</define>
|
||||||
<define name="__NO_CTYPE_INLINES" />
|
<define name="__NO_CTYPE_INLINES" />
|
||||||
<define name="WINVER">0x0500</define>
|
<define name="WINVER">0x0600</define>
|
||||||
<pch>k32.h</pch>
|
<pch>k32.h</pch>
|
||||||
<directory name="debug">
|
<directory name="debug">
|
||||||
<file>break.c</file>
|
<file>break.c</file>
|
||||||
|
|
|
@ -3622,4 +3622,108 @@ GetConsoleInputExeNameA(DWORD nBufferLength, LPSTR lpBuffer)
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
* GetConsoleHistoryInfo
|
||||||
|
*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
BOOL STDCALL
|
||||||
|
GetConsoleHistoryInfo(PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo)
|
||||||
|
{
|
||||||
|
DPRINT1("GetConsoleHistoryInfo(0x%p) UNIMPLEMENTED!\n", lpConsoleHistoryInfo);
|
||||||
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
* SetConsoleHistoryInfo
|
||||||
|
*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
BOOL STDCALL
|
||||||
|
SetConsoleHistoryInfo(IN PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo)
|
||||||
|
{
|
||||||
|
DPRINT1("SetConsoleHistoryInfo(0x%p) UNIMPLEMENTED!\n", lpConsoleHistoryInfo);
|
||||||
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
* GetConsoleOriginalTitleW
|
||||||
|
*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
DWORD STDCALL
|
||||||
|
GetConsoleOriginalTitleW(OUT LPWSTR lpConsoleTitle,
|
||||||
|
IN DWORD nSize)
|
||||||
|
{
|
||||||
|
DPRINT1("GetConsoleOriginalTitleW(0x%p, 0x%x) UNIMPLEMENTED!\n", lpConsoleTitle, nSize);
|
||||||
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
* GetConsoleOriginalTitleA
|
||||||
|
*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
DWORD STDCALL
|
||||||
|
GetConsoleOriginalTitleA(OUT LPSTR lpConsoleTitle,
|
||||||
|
IN DWORD nSize)
|
||||||
|
{
|
||||||
|
DPRINT1("GetConsoleOriginalTitleA(0x%p, 0x%x) UNIMPLEMENTED!\n", lpConsoleTitle, nSize);
|
||||||
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
* GetConsoleScreenBufferInfoEx
|
||||||
|
*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
BOOL STDCALL
|
||||||
|
GetConsoleScreenBufferInfoEx(IN HANDLE hConsoleOutput,
|
||||||
|
OUT PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx)
|
||||||
|
{
|
||||||
|
DPRINT1("GetConsoleScreenBufferInfoEx(0x%p, 0x%p) UNIMPLEMENTED!\n", hConsoleOutput, lpConsoleScreenBufferInfoEx);
|
||||||
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
* SetConsoleScreenBufferInfoEx
|
||||||
|
*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
BOOL STDCALL
|
||||||
|
SetConsoleScreenBufferInfoEx(IN HANDLE hConsoleOutput,
|
||||||
|
IN PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx)
|
||||||
|
{
|
||||||
|
DPRINT1("SetConsoleScreenBufferInfoEx(0x%p, 0x%p) UNIMPLEMENTED!\n", hConsoleOutput, lpConsoleScreenBufferInfoEx);
|
||||||
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------
|
||||||
|
* GetCurrentConsoleFontEx
|
||||||
|
*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
BOOL STDCALL
|
||||||
|
GetCurrentConsoleFontEx(IN HANDLE hConsoleOutput,
|
||||||
|
IN BOOL bMaximumWindow,
|
||||||
|
OUT PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx)
|
||||||
|
{
|
||||||
|
DPRINT1("GetCurrentConsoleFontEx(0x%p, 0x%x, 0x%p) UNIMPLEMENTED!\n", hConsoleOutput, bMaximumWindow, lpConsoleCurrentFontEx);
|
||||||
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
* -Gunnar
|
* -Gunnar
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WINVER 0x0500
|
|
||||||
|
|
||||||
#include <k32.h>
|
#include <k32.h>
|
||||||
|
|
||||||
#include "wine/config.h"
|
#include "wine/config.h"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<define name="__NTDLL__" />
|
<define name="__NTDLL__" />
|
||||||
<define name="_DISABLE_TIDENTS" />
|
<define name="_DISABLE_TIDENTS" />
|
||||||
<define name="__USE_W32API" />
|
<define name="__USE_W32API" />
|
||||||
<define name="_WIN32_WINNT">0x0502</define>
|
<define name="_WIN32_WINNT">0x0600</define>
|
||||||
<define name="_NTOSKRNL_" />
|
<define name="_NTOSKRNL_" />
|
||||||
<define name="__NO_CTYPE_INLINES" />
|
<define name="__NO_CTYPE_INLINES" />
|
||||||
<library>rtl</library>
|
<library>rtl</library>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<define name="_UNICODE" />
|
<define name="_UNICODE" />
|
||||||
<define name="__USE_W32API" />
|
<define name="__USE_W32API" />
|
||||||
<define name="_WIN32_IE">0x0500</define>
|
<define name="_WIN32_IE">0x0500</define>
|
||||||
<define name="_WIN32_WINNT">0x501</define>
|
<define name="_WIN32_WINNT">0x600</define>
|
||||||
<define name="WINVER">0x0600</define>
|
<define name="WINVER">0x0600</define>
|
||||||
<library>ntdll</library>
|
<library>ntdll</library>
|
||||||
<library>kernel32</library>
|
<library>kernel32</library>
|
||||||
|
|
|
@ -107,7 +107,6 @@ typedef struct _KEY_EVENT_RECORD {
|
||||||
PACKED
|
PACKED
|
||||||
#endif
|
#endif
|
||||||
KEY_EVENT_RECORD;
|
KEY_EVENT_RECORD;
|
||||||
|
|
||||||
typedef struct _MOUSE_EVENT_RECORD {
|
typedef struct _MOUSE_EVENT_RECORD {
|
||||||
COORD dwMousePosition;
|
COORD dwMousePosition;
|
||||||
DWORD dwButtonState;
|
DWORD dwButtonState;
|
||||||
|
@ -128,8 +127,39 @@ typedef struct _INPUT_RECORD {
|
||||||
} Event;
|
} Event;
|
||||||
} INPUT_RECORD,*PINPUT_RECORD;
|
} INPUT_RECORD,*PINPUT_RECORD;
|
||||||
|
|
||||||
|
#if (_WIN32_WINNT >= 0x0600)
|
||||||
|
#define HISTORY_NO_DUP_FLAG 0x1
|
||||||
|
#define CONSOLE_OVERSTRIKE 0x1
|
||||||
|
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;
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
BOOL WINAPI AllocConsole(void);
|
BOOL WINAPI AllocConsole(void);
|
||||||
#if (_WIN32_WINNT >= 0x05001)
|
#if (_WIN32_WINNT >= 0x0501)
|
||||||
BOOL WINAPI AttachConsole(DWORD);
|
BOOL WINAPI AttachConsole(DWORD);
|
||||||
#endif
|
#endif
|
||||||
HANDLE WINAPI CreateConsoleScreenBuffer(DWORD,DWORD,CONST SECURITY_ATTRIBUTES*,DWORD,LPVOID);
|
HANDLE WINAPI CreateConsoleScreenBuffer(DWORD,DWORD,CONST SECURITY_ATTRIBUTES*,DWORD,LPVOID);
|
||||||
|
|
|
@ -47,11 +47,11 @@
|
||||||
#include <excpt.h>
|
#include <excpt.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <windef.h>
|
#include <windef.h>
|
||||||
#include <wincon.h>
|
|
||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
#if !(defined NOGDI || defined _WINGDI_H)
|
#if !(defined NOGDI || defined _WINGDI_H)
|
||||||
#include <wingdi.h>
|
#include <wingdi.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <wincon.h>
|
||||||
#ifndef _WINUSER_H
|
#ifndef _WINUSER_H
|
||||||
#include <winuser.h>
|
#include <winuser.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue