-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconime.h
More file actions
63 lines (45 loc) · 1.69 KB
/
Copy pathconime.h
File metadata and controls
63 lines (45 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*++
Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
Module Name:
conime.h
Abstract:
This module contains the internal structures and definitions used
by the console IME.
Author:
v-HirShi Jul.4.1995
Revision History:
--*/
#pragma once
#define CONIME_ATTRCOLOR_SIZE 8
#define CONIME_CURSOR_RIGHT 0x10
#define CONIME_CURSOR_LEFT 0x20
[[nodiscard]]
HRESULT ImeStartComposition();
[[nodiscard]]
HRESULT ImeEndComposition();
[[nodiscard]]
HRESULT ImeComposeData(std::wstring_view text,
std::basic_string_view<BYTE> attributes,
std::basic_string_view<WORD> colorArray);
[[nodiscard]]
HRESULT ImeClearComposeData();
[[nodiscard]]
HRESULT ImeComposeResult(std::wstring_view text);
// Default composition color attributes
#define DEFAULT_COMP_ENTERED \
(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | \
COMMON_LVB_UNDERSCORE)
#define DEFAULT_COMP_ALREADY_CONVERTED \
(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | \
BACKGROUND_BLUE )
#define DEFAULT_COMP_CONVERSION \
(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | \
COMMON_LVB_UNDERSCORE)
#define DEFAULT_COMP_YET_CONVERTED \
(FOREGROUND_BLUE | \
BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED | \
COMMON_LVB_UNDERSCORE)
#define DEFAULT_COMP_INPUT_ERROR \
( FOREGROUND_RED | \
COMMON_LVB_UNDERSCORE)