ReactOS 0.4.16-dev-338-g34e76ad
vista.c File Reference
#include <k32.h>
#include <debug.h>
Include dependency graph for vista.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleHistoryInfo (PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo)
 
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleHistoryInfo (IN PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo)
 
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleOriginalTitleW (OUT LPWSTR lpConsoleTitle, IN DWORD nSize)
 
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleOriginalTitleA (OUT LPSTR lpConsoleTitle, IN DWORD nSize)
 
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleScreenBufferInfoEx (IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx)
 
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferInfoEx (IN HANDLE hConsoleOutput, IN PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx)
 
BOOL WINAPI DECLSPEC_HOTPATCH GetCurrentConsoleFontEx (IN HANDLE hConsoleOutput, IN BOOL bMaximumWindow, OUT PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file vista.c.

Function Documentation

◆ GetConsoleHistoryInfo()

BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleHistoryInfo ( PCONSOLE_HISTORY_INFO  lpConsoleHistoryInfo)

Definition at line 27 of file vista.c.

28{
29 CONSOLE_API_MESSAGE ApiMessage;
30 PCONSOLE_GETSETHISTORYINFO HistoryInfoRequest = &ApiMessage.Data.HistoryInfoRequest;
31
32 if (lpConsoleHistoryInfo->cbSize != sizeof(CONSOLE_HISTORY_INFO))
33 {
35 return FALSE;
36 }
37
39 NULL,
41 sizeof(*HistoryInfoRequest));
42 if (!NT_SUCCESS(ApiMessage.Status))
43 {
44 BaseSetLastNTError(ApiMessage.Status);
45 return FALSE;
46 }
47
48 lpConsoleHistoryInfo->HistoryBufferSize = HistoryInfoRequest->HistoryBufferSize;
49 lpConsoleHistoryInfo->NumberOfHistoryBuffers = HistoryInfoRequest->NumberOfHistoryBuffers;
50 lpConsoleHistoryInfo->dwFlags = HistoryInfoRequest->dwFlags;
51
52 return TRUE;
53}
@ ConsolepGetHistory
Definition: conmsg.h:108
#define CONSRV_SERVERDLL_INDEX
Definition: conmsg.h:15
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define SetLastError(x)
Definition: compat.h:752
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:167
NTSTATUS NTAPI CsrClientCallServer(_Inout_ PCSR_API_MESSAGE ApiMessage, _Inout_opt_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_ CSR_API_NUMBER ApiNumber, _In_ ULONG DataLength)
Definition: connect.c:366
CONSOLE_GETSETHISTORYINFO HistoryInfoRequest
Definition: conmsg.h:1009
union _CONSOLE_API_MESSAGE::@3541 Data
UINT NumberOfHistoryBuffers
Definition: wincon.h:287
NTSTATUS Status
Definition: csrmsg.h:110

◆ GetConsoleOriginalTitleA()

DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleOriginalTitleA ( OUT LPSTR  lpConsoleTitle,
IN DWORD  nSize 
)

Definition at line 112 of file vista.c.

114{
115 DPRINT1("GetConsoleOriginalTitleA(0x%p, 0x%x) UNIMPLEMENTED!\n", lpConsoleTitle, nSize);
117 return 0;
118}
#define DPRINT1
Definition: precomp.h:8
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102
*nSize LPSTR _Inout_ LPDWORD nSize
Definition: winbase.h:2109

◆ GetConsoleOriginalTitleW()

DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleOriginalTitleW ( OUT LPWSTR  lpConsoleTitle,
IN DWORD  nSize 
)

Definition at line 97 of file vista.c.

99{
100 DPRINT1("GetConsoleOriginalTitleW(0x%p, 0x%x) UNIMPLEMENTED!\n", lpConsoleTitle, nSize);
102 return 0;
103}

◆ GetConsoleScreenBufferInfoEx()

BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleScreenBufferInfoEx ( IN HANDLE  hConsoleOutput,
OUT PCONSOLE_SCREEN_BUFFER_INFOEX  lpConsoleScreenBufferInfoEx 
)

Definition at line 127 of file vista.c.

129{
130 DPRINT1("GetConsoleScreenBufferInfoEx(0x%p, 0x%p) UNIMPLEMENTED!\n", hConsoleOutput, lpConsoleScreenBufferInfoEx);
132 return FALSE;
133}

◆ GetCurrentConsoleFontEx()

BOOL WINAPI DECLSPEC_HOTPATCH GetCurrentConsoleFontEx ( IN HANDLE  hConsoleOutput,
IN BOOL  bMaximumWindow,
OUT PCONSOLE_FONT_INFOEX  lpConsoleCurrentFontEx 
)

Definition at line 157 of file vista.c.

160{
161 DPRINT1("GetCurrentConsoleFontEx(0x%p, 0x%x, 0x%p) UNIMPLEMENTED!\n", hConsoleOutput, bMaximumWindow, lpConsoleCurrentFontEx);
163 return FALSE;
164}

◆ SetConsoleHistoryInfo()

BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleHistoryInfo ( IN PCONSOLE_HISTORY_INFO  lpConsoleHistoryInfo)

Definition at line 62 of file vista.c.

63{
64 CONSOLE_API_MESSAGE ApiMessage;
65 PCONSOLE_GETSETHISTORYINFO HistoryInfoRequest = &ApiMessage.Data.HistoryInfoRequest;
66
67 if (lpConsoleHistoryInfo->cbSize != sizeof(CONSOLE_HISTORY_INFO))
68 {
70 return FALSE;
71 }
72
73 HistoryInfoRequest->HistoryBufferSize = lpConsoleHistoryInfo->HistoryBufferSize;
74 HistoryInfoRequest->NumberOfHistoryBuffers = lpConsoleHistoryInfo->NumberOfHistoryBuffers;
75 HistoryInfoRequest->dwFlags = lpConsoleHistoryInfo->dwFlags;
76
78 NULL,
80 sizeof(*HistoryInfoRequest));
81 if (!NT_SUCCESS(ApiMessage.Status))
82 {
83 BaseSetLastNTError(ApiMessage.Status);
84 return FALSE;
85 }
86
87 return TRUE;
88}
@ ConsolepSetHistory
Definition: conmsg.h:109

◆ SetConsoleScreenBufferInfoEx()

BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferInfoEx ( IN HANDLE  hConsoleOutput,
IN PCONSOLE_SCREEN_BUFFER_INFOEX  lpConsoleScreenBufferInfoEx 
)

Definition at line 142 of file vista.c.

144{
145 DPRINT1("SetConsoleScreenBufferInfoEx(0x%p, 0x%p) UNIMPLEMENTED!\n", hConsoleOutput, lpConsoleScreenBufferInfoEx);
147 return FALSE;
148}