ReactOS  0.4.15-dev-448-gd6c4411
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 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define TRUE
Definition: types.h:120
NTSTATUS NTAPI CsrClientCallServer(IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL, IN CSR_API_NUMBER ApiNumber, IN ULONG DataLength)
Definition: connect.c:365
CONSOLE_GETSETHISTORYINFO HistoryInfoRequest
Definition: conmsg.h:987
UINT NumberOfHistoryBuffers
Definition: wincon.h:290
NTSTATUS Status
Definition: csrmsg.h:112
smooth NULL
Definition: ftsmooth.c:416
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:166
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define SetLastError(x)
Definition: compat.h:418
union _CONSOLE_API_MESSAGE::@3449 Data
#define CONSRV_SERVERDLL_INDEX
Definition: conmsg.h:15

◆ 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 }
*nSize LPSTR _Inout_ LPDWORD nSize
Definition: winbase.h:2037
#define SetLastError(x)
Definition: compat.h:418
#define DPRINT1
Definition: precomp.h:8
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ 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 }
*nSize LPSTR _Inout_ LPDWORD nSize
Definition: winbase.h:2037
#define SetLastError(x)
Definition: compat.h:418
#define DPRINT1
Definition: precomp.h:8
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ 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 }
#define SetLastError(x)
Definition: compat.h:418
#define DPRINT1
Definition: precomp.h:8
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ 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 }
#define SetLastError(x)
Definition: compat.h:418
#define DPRINT1
Definition: precomp.h:8
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ 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 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define TRUE
Definition: types.h:120
NTSTATUS NTAPI CsrClientCallServer(IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL, IN CSR_API_NUMBER ApiNumber, IN ULONG DataLength)
Definition: connect.c:365
CONSOLE_GETSETHISTORYINFO HistoryInfoRequest
Definition: conmsg.h:987
NTSTATUS Status
Definition: csrmsg.h:112
smooth NULL
Definition: ftsmooth.c:416
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:166
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
Definition: csrmsg.h:37
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define SetLastError(x)
Definition: compat.h:418
union _CONSOLE_API_MESSAGE::@3449 Data
#define CONSRV_SERVERDLL_INDEX
Definition: conmsg.h:15

◆ 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 }
#define SetLastError(x)
Definition: compat.h:418
#define DPRINT1
Definition: precomp.h:8
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92