mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-12 18:41:01 -06:00
Merged PR 7705347: Add stubs to Terminal for OneCoreSafe*, fix the ConIoSrv header
This is required for us to build out of the Terminal repo. Related work items: MSFT-40435912
This commit is contained in:
parent
a94e508010
commit
0973aeab15
@ -13,6 +13,10 @@ Licensed under the MIT license.
|
|||||||
#define CIS_EVENT_TYPE_FOCUS (1)
|
#define CIS_EVENT_TYPE_FOCUS (1)
|
||||||
#define CIS_EVENT_TYPE_FOCUS_ACK (2)
|
#define CIS_EVENT_TYPE_FOCUS_ACK (2)
|
||||||
|
|
||||||
|
#define CIS_MSG_TYPE_MAPVIRTUALKEY (0)
|
||||||
|
#define CIS_MSG_TYPE_VKKEYSCAN (1)
|
||||||
|
#define CIS_MSG_TYPE_GETKEYSTATE (2)
|
||||||
|
|
||||||
#define CIS_MSG_TYPE_GETDISPLAYSIZE (3)
|
#define CIS_MSG_TYPE_GETDISPLAYSIZE (3)
|
||||||
#define CIS_MSG_TYPE_GETFONTSIZE (4)
|
#define CIS_MSG_TYPE_GETFONTSIZE (4)
|
||||||
#define CIS_MSG_TYPE_SETCURSOR (5)
|
#define CIS_MSG_TYPE_SETCURSOR (5)
|
||||||
@ -31,6 +35,22 @@ typedef struct {
|
|||||||
UCHAR Type;
|
UCHAR Type;
|
||||||
|
|
||||||
union {
|
union {
|
||||||
|
struct {
|
||||||
|
UINT Code;
|
||||||
|
UINT MapType;
|
||||||
|
UINT ReturnValue;
|
||||||
|
} MapVirtualKeyParams;
|
||||||
|
|
||||||
|
struct {
|
||||||
|
WCHAR Character;
|
||||||
|
SHORT ReturnValue;
|
||||||
|
} VkKeyScanParams;
|
||||||
|
|
||||||
|
struct {
|
||||||
|
int VirtualKey;
|
||||||
|
SHORT ReturnValue;
|
||||||
|
} GetKeyStateParams;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
CD_IO_DISPLAY_SIZE DisplaySize;
|
CD_IO_DISPLAY_SIZE DisplaySize;
|
||||||
|
|
||||||
|
|||||||
@ -1613,3 +1613,23 @@ til::color Terminal::GetColorForMark(const Microsoft::Console::VirtualTerminal::
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// These functions are used by TerminalInput, which must build in conhost
|
||||||
|
// against OneCore compatible signatures. See the definitions in
|
||||||
|
// VtApiRedirection.hpp (which we cannot include cross-project.)
|
||||||
|
// Since we do nto run on OneCore, we can dispense with the compatibility
|
||||||
|
// shims.
|
||||||
|
extern "C" UINT OneCoreSafeMapVirtualKeyW(_In_ UINT uCode, _In_ UINT uMapType)
|
||||||
|
{
|
||||||
|
return MapVirtualKeyW(uCode, uMapType);
|
||||||
|
}
|
||||||
|
|
||||||
|
extern "C" SHORT OneCoreSafeVkKeyScanW(_In_ WCHAR ch)
|
||||||
|
{
|
||||||
|
return VkKeyScanW(ch);
|
||||||
|
}
|
||||||
|
|
||||||
|
extern "C" SHORT OneCoreSafeGetKeyState(_In_ int nVirtKey)
|
||||||
|
{
|
||||||
|
return GetKeyState(nVirtKey);
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user