]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Win32/System/Console/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Win32 / System / Console / mod.rs
1 #[link(name = "windows")]
2 extern "system" {
3 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
4 #[cfg(feature = "Win32_Foundation")]
5 pub fn AddConsoleAliasA(source: ::windows_sys::core::PCSTR, target: ::windows_sys::core::PCSTR, exename: ::windows_sys::core::PCSTR) -> super::super::Foundation::BOOL;
6 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
7 #[cfg(feature = "Win32_Foundation")]
8 pub fn AddConsoleAliasW(source: ::windows_sys::core::PCWSTR, target: ::windows_sys::core::PCWSTR, exename: ::windows_sys::core::PCWSTR) -> super::super::Foundation::BOOL;
9 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
10 #[cfg(feature = "Win32_Foundation")]
11 pub fn AllocConsole() -> super::super::Foundation::BOOL;
12 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
13 #[cfg(feature = "Win32_Foundation")]
14 pub fn AttachConsole(dwprocessid: u32) -> super::super::Foundation::BOOL;
15 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
16 pub fn ClosePseudoConsole(hpc: HPCON);
17 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`, `\"Win32_Security\"`*"]
18 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
19 pub fn CreateConsoleScreenBuffer(dwdesiredaccess: u32, dwsharemode: u32, lpsecurityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, dwflags: u32, lpscreenbufferdata: *mut ::core::ffi::c_void) -> super::super::Foundation::HANDLE;
20 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
21 #[cfg(feature = "Win32_Foundation")]
22 pub fn CreatePseudoConsole(size: COORD, hinput: super::super::Foundation::HANDLE, houtput: super::super::Foundation::HANDLE, dwflags: u32, phpc: *mut HPCON) -> ::windows_sys::core::HRESULT;
23 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
24 pub fn ExpungeConsoleCommandHistoryA(exename: ::windows_sys::core::PCSTR);
25 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
26 pub fn ExpungeConsoleCommandHistoryW(exename: ::windows_sys::core::PCWSTR);
27 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
28 #[cfg(feature = "Win32_Foundation")]
29 pub fn FillConsoleOutputAttribute(hconsoleoutput: super::super::Foundation::HANDLE, wattribute: u16, nlength: u32, dwwritecoord: COORD, lpnumberofattrswritten: *mut u32) -> super::super::Foundation::BOOL;
30 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
31 #[cfg(feature = "Win32_Foundation")]
32 pub fn FillConsoleOutputCharacterA(hconsoleoutput: super::super::Foundation::HANDLE, ccharacter: super::super::Foundation::CHAR, nlength: u32, dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> super::super::Foundation::BOOL;
33 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
34 #[cfg(feature = "Win32_Foundation")]
35 pub fn FillConsoleOutputCharacterW(hconsoleoutput: super::super::Foundation::HANDLE, ccharacter: u16, nlength: u32, dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> super::super::Foundation::BOOL;
36 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
37 #[cfg(feature = "Win32_Foundation")]
38 pub fn FlushConsoleInputBuffer(hconsoleinput: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL;
39 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
40 #[cfg(feature = "Win32_Foundation")]
41 pub fn FreeConsole() -> super::super::Foundation::BOOL;
42 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
43 #[cfg(feature = "Win32_Foundation")]
44 pub fn GenerateConsoleCtrlEvent(dwctrlevent: u32, dwprocessgroupid: u32) -> super::super::Foundation::BOOL;
45 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
46 pub fn GetConsoleAliasA(source: ::windows_sys::core::PCSTR, targetbuffer: ::windows_sys::core::PSTR, targetbufferlength: u32, exename: ::windows_sys::core::PCSTR) -> u32;
47 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
48 pub fn GetConsoleAliasExesA(exenamebuffer: ::windows_sys::core::PSTR, exenamebufferlength: u32) -> u32;
49 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
50 pub fn GetConsoleAliasExesLengthA() -> u32;
51 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
52 pub fn GetConsoleAliasExesLengthW() -> u32;
53 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
54 pub fn GetConsoleAliasExesW(exenamebuffer: ::windows_sys::core::PWSTR, exenamebufferlength: u32) -> u32;
55 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
56 pub fn GetConsoleAliasW(source: ::windows_sys::core::PCWSTR, targetbuffer: ::windows_sys::core::PWSTR, targetbufferlength: u32, exename: ::windows_sys::core::PCWSTR) -> u32;
57 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
58 pub fn GetConsoleAliasesA(aliasbuffer: ::windows_sys::core::PSTR, aliasbufferlength: u32, exename: ::windows_sys::core::PCSTR) -> u32;
59 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
60 pub fn GetConsoleAliasesLengthA(exename: ::windows_sys::core::PCSTR) -> u32;
61 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
62 pub fn GetConsoleAliasesLengthW(exename: ::windows_sys::core::PCWSTR) -> u32;
63 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
64 pub fn GetConsoleAliasesW(aliasbuffer: ::windows_sys::core::PWSTR, aliasbufferlength: u32, exename: ::windows_sys::core::PCWSTR) -> u32;
65 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
66 pub fn GetConsoleCP() -> u32;
67 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
68 pub fn GetConsoleCommandHistoryA(commands: ::windows_sys::core::PSTR, commandbufferlength: u32, exename: ::windows_sys::core::PCSTR) -> u32;
69 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
70 pub fn GetConsoleCommandHistoryLengthA(exename: ::windows_sys::core::PCSTR) -> u32;
71 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
72 pub fn GetConsoleCommandHistoryLengthW(exename: ::windows_sys::core::PCWSTR) -> u32;
73 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
74 pub fn GetConsoleCommandHistoryW(commands: ::windows_sys::core::PWSTR, commandbufferlength: u32, exename: ::windows_sys::core::PCWSTR) -> u32;
75 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
76 #[cfg(feature = "Win32_Foundation")]
77 pub fn GetConsoleCursorInfo(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolecursorinfo: *mut CONSOLE_CURSOR_INFO) -> super::super::Foundation::BOOL;
78 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
79 #[cfg(feature = "Win32_Foundation")]
80 pub fn GetConsoleDisplayMode(lpmodeflags: *mut u32) -> super::super::Foundation::BOOL;
81 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
82 #[cfg(feature = "Win32_Foundation")]
83 pub fn GetConsoleFontSize(hconsoleoutput: super::super::Foundation::HANDLE, nfont: u32) -> COORD;
84 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
85 #[cfg(feature = "Win32_Foundation")]
86 pub fn GetConsoleHistoryInfo(lpconsolehistoryinfo: *mut CONSOLE_HISTORY_INFO) -> super::super::Foundation::BOOL;
87 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
88 #[cfg(feature = "Win32_Foundation")]
89 pub fn GetConsoleMode(hconsolehandle: super::super::Foundation::HANDLE, lpmode: *mut CONSOLE_MODE) -> super::super::Foundation::BOOL;
90 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
91 pub fn GetConsoleOriginalTitleA(lpconsoletitle: ::windows_sys::core::PSTR, nsize: u32) -> u32;
92 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
93 pub fn GetConsoleOriginalTitleW(lpconsoletitle: ::windows_sys::core::PWSTR, nsize: u32) -> u32;
94 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
95 pub fn GetConsoleOutputCP() -> u32;
96 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
97 pub fn GetConsoleProcessList(lpdwprocesslist: *mut u32, dwprocesscount: u32) -> u32;
98 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
99 #[cfg(feature = "Win32_Foundation")]
100 pub fn GetConsoleScreenBufferInfo(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolescreenbufferinfo: *mut CONSOLE_SCREEN_BUFFER_INFO) -> super::super::Foundation::BOOL;
101 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
102 #[cfg(feature = "Win32_Foundation")]
103 pub fn GetConsoleScreenBufferInfoEx(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolescreenbufferinfoex: *mut CONSOLE_SCREEN_BUFFER_INFOEX) -> super::super::Foundation::BOOL;
104 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
105 #[cfg(feature = "Win32_Foundation")]
106 pub fn GetConsoleSelectionInfo(lpconsoleselectioninfo: *mut CONSOLE_SELECTION_INFO) -> super::super::Foundation::BOOL;
107 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
108 pub fn GetConsoleTitleA(lpconsoletitle: ::windows_sys::core::PSTR, nsize: u32) -> u32;
109 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
110 pub fn GetConsoleTitleW(lpconsoletitle: ::windows_sys::core::PWSTR, nsize: u32) -> u32;
111 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
112 #[cfg(feature = "Win32_Foundation")]
113 pub fn GetConsoleWindow() -> super::super::Foundation::HWND;
114 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
115 #[cfg(feature = "Win32_Foundation")]
116 pub fn GetCurrentConsoleFont(hconsoleoutput: super::super::Foundation::HANDLE, bmaximumwindow: super::super::Foundation::BOOL, lpconsolecurrentfont: *mut CONSOLE_FONT_INFO) -> super::super::Foundation::BOOL;
117 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
118 #[cfg(feature = "Win32_Foundation")]
119 pub fn GetCurrentConsoleFontEx(hconsoleoutput: super::super::Foundation::HANDLE, bmaximumwindow: super::super::Foundation::BOOL, lpconsolecurrentfontex: *mut CONSOLE_FONT_INFOEX) -> super::super::Foundation::BOOL;
120 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
121 #[cfg(feature = "Win32_Foundation")]
122 pub fn GetLargestConsoleWindowSize(hconsoleoutput: super::super::Foundation::HANDLE) -> COORD;
123 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
124 #[cfg(feature = "Win32_Foundation")]
125 pub fn GetNumberOfConsoleInputEvents(hconsoleinput: super::super::Foundation::HANDLE, lpnumberofevents: *mut u32) -> super::super::Foundation::BOOL;
126 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
127 #[cfg(feature = "Win32_Foundation")]
128 pub fn GetNumberOfConsoleMouseButtons(lpnumberofmousebuttons: *mut u32) -> super::super::Foundation::BOOL;
129 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
130 #[cfg(feature = "Win32_Foundation")]
131 pub fn GetStdHandle(nstdhandle: STD_HANDLE) -> super::super::Foundation::HANDLE;
132 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
133 #[cfg(feature = "Win32_Foundation")]
134 pub fn PeekConsoleInputA(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *mut INPUT_RECORD, nlength: u32, lpnumberofeventsread: *mut u32) -> super::super::Foundation::BOOL;
135 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
136 #[cfg(feature = "Win32_Foundation")]
137 pub fn PeekConsoleInputW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *mut INPUT_RECORD, nlength: u32, lpnumberofeventsread: *mut u32) -> super::super::Foundation::BOOL;
138 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
139 #[cfg(feature = "Win32_Foundation")]
140 pub fn ReadConsoleA(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *mut ::core::ffi::c_void, nnumberofcharstoread: u32, lpnumberofcharsread: *mut u32, pinputcontrol: *const CONSOLE_READCONSOLE_CONTROL) -> super::super::Foundation::BOOL;
141 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
142 #[cfg(feature = "Win32_Foundation")]
143 pub fn ReadConsoleInputA(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *mut INPUT_RECORD, nlength: u32, lpnumberofeventsread: *mut u32) -> super::super::Foundation::BOOL;
144 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
145 #[cfg(feature = "Win32_Foundation")]
146 pub fn ReadConsoleInputW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *mut INPUT_RECORD, nlength: u32, lpnumberofeventsread: *mut u32) -> super::super::Foundation::BOOL;
147 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
148 #[cfg(feature = "Win32_Foundation")]
149 pub fn ReadConsoleOutputA(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *mut CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpreadregion: *mut SMALL_RECT) -> super::super::Foundation::BOOL;
150 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
151 #[cfg(feature = "Win32_Foundation")]
152 pub fn ReadConsoleOutputAttribute(hconsoleoutput: super::super::Foundation::HANDLE, lpattribute: *mut u16, nlength: u32, dwreadcoord: COORD, lpnumberofattrsread: *mut u32) -> super::super::Foundation::BOOL;
153 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
154 #[cfg(feature = "Win32_Foundation")]
155 pub fn ReadConsoleOutputCharacterA(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: ::windows_sys::core::PSTR, nlength: u32, dwreadcoord: COORD, lpnumberofcharsread: *mut u32) -> super::super::Foundation::BOOL;
156 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
157 #[cfg(feature = "Win32_Foundation")]
158 pub fn ReadConsoleOutputCharacterW(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: ::windows_sys::core::PWSTR, nlength: u32, dwreadcoord: COORD, lpnumberofcharsread: *mut u32) -> super::super::Foundation::BOOL;
159 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
160 #[cfg(feature = "Win32_Foundation")]
161 pub fn ReadConsoleOutputW(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *mut CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpreadregion: *mut SMALL_RECT) -> super::super::Foundation::BOOL;
162 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
163 #[cfg(feature = "Win32_Foundation")]
164 pub fn ReadConsoleW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *mut ::core::ffi::c_void, nnumberofcharstoread: u32, lpnumberofcharsread: *mut u32, pinputcontrol: *const CONSOLE_READCONSOLE_CONTROL) -> super::super::Foundation::BOOL;
165 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
166 pub fn ResizePseudoConsole(hpc: HPCON, size: COORD) -> ::windows_sys::core::HRESULT;
167 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
168 #[cfg(feature = "Win32_Foundation")]
169 pub fn ScrollConsoleScreenBufferA(hconsoleoutput: super::super::Foundation::HANDLE, lpscrollrectangle: *const SMALL_RECT, lpcliprectangle: *const SMALL_RECT, dwdestinationorigin: COORD, lpfill: *const CHAR_INFO) -> super::super::Foundation::BOOL;
170 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
171 #[cfg(feature = "Win32_Foundation")]
172 pub fn ScrollConsoleScreenBufferW(hconsoleoutput: super::super::Foundation::HANDLE, lpscrollrectangle: *const SMALL_RECT, lpcliprectangle: *const SMALL_RECT, dwdestinationorigin: COORD, lpfill: *const CHAR_INFO) -> super::super::Foundation::BOOL;
173 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
174 #[cfg(feature = "Win32_Foundation")]
175 pub fn SetConsoleActiveScreenBuffer(hconsoleoutput: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL;
176 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
177 #[cfg(feature = "Win32_Foundation")]
178 pub fn SetConsoleCP(wcodepageid: u32) -> super::super::Foundation::BOOL;
179 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
180 #[cfg(feature = "Win32_Foundation")]
181 pub fn SetConsoleCtrlHandler(handlerroutine: PHANDLER_ROUTINE, add: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL;
182 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
183 #[cfg(feature = "Win32_Foundation")]
184 pub fn SetConsoleCursorInfo(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolecursorinfo: *const CONSOLE_CURSOR_INFO) -> super::super::Foundation::BOOL;
185 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
186 #[cfg(feature = "Win32_Foundation")]
187 pub fn SetConsoleCursorPosition(hconsoleoutput: super::super::Foundation::HANDLE, dwcursorposition: COORD) -> super::super::Foundation::BOOL;
188 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
189 #[cfg(feature = "Win32_Foundation")]
190 pub fn SetConsoleDisplayMode(hconsoleoutput: super::super::Foundation::HANDLE, dwflags: u32, lpnewscreenbufferdimensions: *mut COORD) -> super::super::Foundation::BOOL;
191 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
192 #[cfg(feature = "Win32_Foundation")]
193 pub fn SetConsoleHistoryInfo(lpconsolehistoryinfo: *const CONSOLE_HISTORY_INFO) -> super::super::Foundation::BOOL;
194 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
195 #[cfg(feature = "Win32_Foundation")]
196 pub fn SetConsoleMode(hconsolehandle: super::super::Foundation::HANDLE, dwmode: CONSOLE_MODE) -> super::super::Foundation::BOOL;
197 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
198 #[cfg(feature = "Win32_Foundation")]
199 pub fn SetConsoleNumberOfCommandsA(number: u32, exename: ::windows_sys::core::PCSTR) -> super::super::Foundation::BOOL;
200 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
201 #[cfg(feature = "Win32_Foundation")]
202 pub fn SetConsoleNumberOfCommandsW(number: u32, exename: ::windows_sys::core::PCWSTR) -> super::super::Foundation::BOOL;
203 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
204 #[cfg(feature = "Win32_Foundation")]
205 pub fn SetConsoleOutputCP(wcodepageid: u32) -> super::super::Foundation::BOOL;
206 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
207 #[cfg(feature = "Win32_Foundation")]
208 pub fn SetConsoleScreenBufferInfoEx(hconsoleoutput: super::super::Foundation::HANDLE, lpconsolescreenbufferinfoex: *const CONSOLE_SCREEN_BUFFER_INFOEX) -> super::super::Foundation::BOOL;
209 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
210 #[cfg(feature = "Win32_Foundation")]
211 pub fn SetConsoleScreenBufferSize(hconsoleoutput: super::super::Foundation::HANDLE, dwsize: COORD) -> super::super::Foundation::BOOL;
212 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
213 #[cfg(feature = "Win32_Foundation")]
214 pub fn SetConsoleTextAttribute(hconsoleoutput: super::super::Foundation::HANDLE, wattributes: u16) -> super::super::Foundation::BOOL;
215 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
216 #[cfg(feature = "Win32_Foundation")]
217 pub fn SetConsoleTitleA(lpconsoletitle: ::windows_sys::core::PCSTR) -> super::super::Foundation::BOOL;
218 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
219 #[cfg(feature = "Win32_Foundation")]
220 pub fn SetConsoleTitleW(lpconsoletitle: ::windows_sys::core::PCWSTR) -> super::super::Foundation::BOOL;
221 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
222 #[cfg(feature = "Win32_Foundation")]
223 pub fn SetConsoleWindowInfo(hconsoleoutput: super::super::Foundation::HANDLE, babsolute: super::super::Foundation::BOOL, lpconsolewindow: *const SMALL_RECT) -> super::super::Foundation::BOOL;
224 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
225 #[cfg(feature = "Win32_Foundation")]
226 pub fn SetCurrentConsoleFontEx(hconsoleoutput: super::super::Foundation::HANDLE, bmaximumwindow: super::super::Foundation::BOOL, lpconsolecurrentfontex: *const CONSOLE_FONT_INFOEX) -> super::super::Foundation::BOOL;
227 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
228 #[cfg(feature = "Win32_Foundation")]
229 pub fn SetStdHandle(nstdhandle: STD_HANDLE, hhandle: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL;
230 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
231 #[cfg(feature = "Win32_Foundation")]
232 pub fn SetStdHandleEx(nstdhandle: STD_HANDLE, hhandle: super::super::Foundation::HANDLE, phprevvalue: *mut super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL;
233 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
234 #[cfg(feature = "Win32_Foundation")]
235 pub fn WriteConsoleA(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *const ::core::ffi::c_void, nnumberofcharstowrite: u32, lpnumberofcharswritten: *mut u32, lpreserved: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL;
236 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
237 #[cfg(feature = "Win32_Foundation")]
238 pub fn WriteConsoleInputA(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *const INPUT_RECORD, nlength: u32, lpnumberofeventswritten: *mut u32) -> super::super::Foundation::BOOL;
239 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
240 #[cfg(feature = "Win32_Foundation")]
241 pub fn WriteConsoleInputW(hconsoleinput: super::super::Foundation::HANDLE, lpbuffer: *const INPUT_RECORD, nlength: u32, lpnumberofeventswritten: *mut u32) -> super::super::Foundation::BOOL;
242 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
243 #[cfg(feature = "Win32_Foundation")]
244 pub fn WriteConsoleOutputA(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *const CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpwriteregion: *mut SMALL_RECT) -> super::super::Foundation::BOOL;
245 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
246 #[cfg(feature = "Win32_Foundation")]
247 pub fn WriteConsoleOutputAttribute(hconsoleoutput: super::super::Foundation::HANDLE, lpattribute: *const u16, nlength: u32, dwwritecoord: COORD, lpnumberofattrswritten: *mut u32) -> super::super::Foundation::BOOL;
248 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
249 #[cfg(feature = "Win32_Foundation")]
250 pub fn WriteConsoleOutputCharacterA(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: ::windows_sys::core::PCSTR, nlength: u32, dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> super::super::Foundation::BOOL;
251 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
252 #[cfg(feature = "Win32_Foundation")]
253 pub fn WriteConsoleOutputCharacterW(hconsoleoutput: super::super::Foundation::HANDLE, lpcharacter: ::windows_sys::core::PCWSTR, nlength: u32, dwwritecoord: COORD, lpnumberofcharswritten: *mut u32) -> super::super::Foundation::BOOL;
254 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
255 #[cfg(feature = "Win32_Foundation")]
256 pub fn WriteConsoleOutputW(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *const CHAR_INFO, dwbuffersize: COORD, dwbuffercoord: COORD, lpwriteregion: *mut SMALL_RECT) -> super::super::Foundation::BOOL;
257 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
258 #[cfg(feature = "Win32_Foundation")]
259 pub fn WriteConsoleW(hconsoleoutput: super::super::Foundation::HANDLE, lpbuffer: *const ::core::ffi::c_void, nnumberofcharstowrite: u32, lpnumberofcharswritten: *mut u32, lpreserved: *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL;
260 }
261 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
262 pub const ALTNUMPAD_BIT: u32 = 67108864u32;
263 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
264 pub const ATTACH_PARENT_PROCESS: u32 = 4294967295u32;
265 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
266 pub const BACKGROUND_BLUE: u32 = 16u32;
267 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
268 pub const BACKGROUND_GREEN: u32 = 32u32;
269 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
270 pub const BACKGROUND_INTENSITY: u32 = 128u32;
271 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
272 pub const BACKGROUND_RED: u32 = 64u32;
273 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
274 pub const CAPSLOCK_ON: u32 = 128u32;
275 #[repr(C)]
276 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
277 #[cfg(feature = "Win32_Foundation")]
278 pub struct CHAR_INFO {
279 pub Char: CHAR_INFO_0,
280 pub Attributes: u16,
281 }
282 #[cfg(feature = "Win32_Foundation")]
283 impl ::core::marker::Copy for CHAR_INFO {}
284 #[cfg(feature = "Win32_Foundation")]
285 impl ::core::clone::Clone for CHAR_INFO {
286 fn clone(&self) -> Self {
287 *self
288 }
289 }
290 #[repr(C)]
291 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
292 #[cfg(feature = "Win32_Foundation")]
293 pub union CHAR_INFO_0 {
294 pub UnicodeChar: u16,
295 pub AsciiChar: super::super::Foundation::CHAR,
296 }
297 #[cfg(feature = "Win32_Foundation")]
298 impl ::core::marker::Copy for CHAR_INFO_0 {}
299 #[cfg(feature = "Win32_Foundation")]
300 impl ::core::clone::Clone for CHAR_INFO_0 {
301 fn clone(&self) -> Self {
302 *self
303 }
304 }
305 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
306 pub const COMMON_LVB_GRID_HORIZONTAL: u32 = 1024u32;
307 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
308 pub const COMMON_LVB_GRID_LVERTICAL: u32 = 2048u32;
309 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
310 pub const COMMON_LVB_GRID_RVERTICAL: u32 = 4096u32;
311 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
312 pub const COMMON_LVB_LEADING_BYTE: u32 = 256u32;
313 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
314 pub const COMMON_LVB_REVERSE_VIDEO: u32 = 16384u32;
315 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
316 pub const COMMON_LVB_SBCSDBCS: u32 = 768u32;
317 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
318 pub const COMMON_LVB_TRAILING_BYTE: u32 = 512u32;
319 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
320 pub const COMMON_LVB_UNDERSCORE: u32 = 32768u32;
321 #[repr(C)]
322 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
323 #[cfg(feature = "Win32_Foundation")]
324 pub struct CONSOLE_CURSOR_INFO {
325 pub dwSize: u32,
326 pub bVisible: super::super::Foundation::BOOL,
327 }
328 #[cfg(feature = "Win32_Foundation")]
329 impl ::core::marker::Copy for CONSOLE_CURSOR_INFO {}
330 #[cfg(feature = "Win32_Foundation")]
331 impl ::core::clone::Clone for CONSOLE_CURSOR_INFO {
332 fn clone(&self) -> Self {
333 *self
334 }
335 }
336 #[repr(C)]
337 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
338 pub struct CONSOLE_FONT_INFO {
339 pub nFont: u32,
340 pub dwFontSize: COORD,
341 }
342 impl ::core::marker::Copy for CONSOLE_FONT_INFO {}
343 impl ::core::clone::Clone for CONSOLE_FONT_INFO {
344 fn clone(&self) -> Self {
345 *self
346 }
347 }
348 #[repr(C)]
349 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
350 pub struct CONSOLE_FONT_INFOEX {
351 pub cbSize: u32,
352 pub nFont: u32,
353 pub dwFontSize: COORD,
354 pub FontFamily: u32,
355 pub FontWeight: u32,
356 pub FaceName: [u16; 32],
357 }
358 impl ::core::marker::Copy for CONSOLE_FONT_INFOEX {}
359 impl ::core::clone::Clone for CONSOLE_FONT_INFOEX {
360 fn clone(&self) -> Self {
361 *self
362 }
363 }
364 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
365 pub const CONSOLE_FULLSCREEN: u32 = 1u32;
366 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
367 pub const CONSOLE_FULLSCREEN_HARDWARE: u32 = 2u32;
368 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
369 pub const CONSOLE_FULLSCREEN_MODE: u32 = 1u32;
370 #[repr(C)]
371 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
372 pub struct CONSOLE_HISTORY_INFO {
373 pub cbSize: u32,
374 pub HistoryBufferSize: u32,
375 pub NumberOfHistoryBuffers: u32,
376 pub dwFlags: u32,
377 }
378 impl ::core::marker::Copy for CONSOLE_HISTORY_INFO {}
379 impl ::core::clone::Clone for CONSOLE_HISTORY_INFO {
380 fn clone(&self) -> Self {
381 *self
382 }
383 }
384 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
385 pub type CONSOLE_MODE = u32;
386 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
387 pub const ENABLE_PROCESSED_INPUT: CONSOLE_MODE = 1u32;
388 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
389 pub const ENABLE_LINE_INPUT: CONSOLE_MODE = 2u32;
390 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
391 pub const ENABLE_ECHO_INPUT: CONSOLE_MODE = 4u32;
392 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
393 pub const ENABLE_WINDOW_INPUT: CONSOLE_MODE = 8u32;
394 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
395 pub const ENABLE_MOUSE_INPUT: CONSOLE_MODE = 16u32;
396 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
397 pub const ENABLE_INSERT_MODE: CONSOLE_MODE = 32u32;
398 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
399 pub const ENABLE_QUICK_EDIT_MODE: CONSOLE_MODE = 64u32;
400 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
401 pub const ENABLE_EXTENDED_FLAGS: CONSOLE_MODE = 128u32;
402 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
403 pub const ENABLE_AUTO_POSITION: CONSOLE_MODE = 256u32;
404 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
405 pub const ENABLE_VIRTUAL_TERMINAL_INPUT: CONSOLE_MODE = 512u32;
406 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
407 pub const ENABLE_PROCESSED_OUTPUT: CONSOLE_MODE = 1u32;
408 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
409 pub const ENABLE_WRAP_AT_EOL_OUTPUT: CONSOLE_MODE = 2u32;
410 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
411 pub const ENABLE_VIRTUAL_TERMINAL_PROCESSING: CONSOLE_MODE = 4u32;
412 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
413 pub const DISABLE_NEWLINE_AUTO_RETURN: CONSOLE_MODE = 8u32;
414 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
415 pub const ENABLE_LVB_GRID_WORLDWIDE: CONSOLE_MODE = 16u32;
416 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
417 pub const CONSOLE_MOUSE_DOWN: u32 = 8u32;
418 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
419 pub const CONSOLE_MOUSE_SELECTION: u32 = 4u32;
420 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
421 pub const CONSOLE_NO_SELECTION: u32 = 0u32;
422 #[repr(C)]
423 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
424 pub struct CONSOLE_READCONSOLE_CONTROL {
425 pub nLength: u32,
426 pub nInitialChars: u32,
427 pub dwCtrlWakeupMask: u32,
428 pub dwControlKeyState: u32,
429 }
430 impl ::core::marker::Copy for CONSOLE_READCONSOLE_CONTROL {}
431 impl ::core::clone::Clone for CONSOLE_READCONSOLE_CONTROL {
432 fn clone(&self) -> Self {
433 *self
434 }
435 }
436 #[repr(C)]
437 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
438 pub struct CONSOLE_SCREEN_BUFFER_INFO {
439 pub dwSize: COORD,
440 pub dwCursorPosition: COORD,
441 pub wAttributes: u16,
442 pub srWindow: SMALL_RECT,
443 pub dwMaximumWindowSize: COORD,
444 }
445 impl ::core::marker::Copy for CONSOLE_SCREEN_BUFFER_INFO {}
446 impl ::core::clone::Clone for CONSOLE_SCREEN_BUFFER_INFO {
447 fn clone(&self) -> Self {
448 *self
449 }
450 }
451 #[repr(C)]
452 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
453 #[cfg(feature = "Win32_Foundation")]
454 pub struct CONSOLE_SCREEN_BUFFER_INFOEX {
455 pub cbSize: u32,
456 pub dwSize: COORD,
457 pub dwCursorPosition: COORD,
458 pub wAttributes: u16,
459 pub srWindow: SMALL_RECT,
460 pub dwMaximumWindowSize: COORD,
461 pub wPopupAttributes: u16,
462 pub bFullscreenSupported: super::super::Foundation::BOOL,
463 pub ColorTable: [u32; 16],
464 }
465 #[cfg(feature = "Win32_Foundation")]
466 impl ::core::marker::Copy for CONSOLE_SCREEN_BUFFER_INFOEX {}
467 #[cfg(feature = "Win32_Foundation")]
468 impl ::core::clone::Clone for CONSOLE_SCREEN_BUFFER_INFOEX {
469 fn clone(&self) -> Self {
470 *self
471 }
472 }
473 #[repr(C)]
474 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
475 pub struct CONSOLE_SELECTION_INFO {
476 pub dwFlags: u32,
477 pub dwSelectionAnchor: COORD,
478 pub srSelection: SMALL_RECT,
479 }
480 impl ::core::marker::Copy for CONSOLE_SELECTION_INFO {}
481 impl ::core::clone::Clone for CONSOLE_SELECTION_INFO {
482 fn clone(&self) -> Self {
483 *self
484 }
485 }
486 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
487 pub const CONSOLE_SELECTION_IN_PROGRESS: u32 = 1u32;
488 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
489 pub const CONSOLE_SELECTION_NOT_EMPTY: u32 = 2u32;
490 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
491 pub const CONSOLE_TEXTMODE_BUFFER: u32 = 1u32;
492 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
493 pub const CONSOLE_WINDOWED_MODE: u32 = 2u32;
494 #[repr(C)]
495 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
496 pub struct COORD {
497 pub X: i16,
498 pub Y: i16,
499 }
500 impl ::core::marker::Copy for COORD {}
501 impl ::core::clone::Clone for COORD {
502 fn clone(&self) -> Self {
503 *self
504 }
505 }
506 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
507 pub const CTRL_BREAK_EVENT: u32 = 1u32;
508 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
509 pub const CTRL_CLOSE_EVENT: u32 = 2u32;
510 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
511 pub const CTRL_C_EVENT: u32 = 0u32;
512 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
513 pub const CTRL_LOGOFF_EVENT: u32 = 5u32;
514 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
515 pub const CTRL_SHUTDOWN_EVENT: u32 = 6u32;
516 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
517 pub const DOUBLE_CLICK: u32 = 2u32;
518 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
519 pub const ENHANCED_KEY: u32 = 256u32;
520 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
521 pub const FOCUS_EVENT: u32 = 16u32;
522 #[repr(C)]
523 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
524 #[cfg(feature = "Win32_Foundation")]
525 pub struct FOCUS_EVENT_RECORD {
526 pub bSetFocus: super::super::Foundation::BOOL,
527 }
528 #[cfg(feature = "Win32_Foundation")]
529 impl ::core::marker::Copy for FOCUS_EVENT_RECORD {}
530 #[cfg(feature = "Win32_Foundation")]
531 impl ::core::clone::Clone for FOCUS_EVENT_RECORD {
532 fn clone(&self) -> Self {
533 *self
534 }
535 }
536 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
537 pub const FOREGROUND_BLUE: u32 = 1u32;
538 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
539 pub const FOREGROUND_GREEN: u32 = 2u32;
540 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
541 pub const FOREGROUND_INTENSITY: u32 = 8u32;
542 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
543 pub const FOREGROUND_RED: u32 = 4u32;
544 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
545 pub const FROM_LEFT_1ST_BUTTON_PRESSED: u32 = 1u32;
546 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
547 pub const FROM_LEFT_2ND_BUTTON_PRESSED: u32 = 4u32;
548 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
549 pub const FROM_LEFT_3RD_BUTTON_PRESSED: u32 = 8u32;
550 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
551 pub const FROM_LEFT_4TH_BUTTON_PRESSED: u32 = 16u32;
552 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
553 pub const HISTORY_NO_DUP_FLAG: u32 = 1u32;
554 pub type HPCON = isize;
555 #[repr(C)]
556 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
557 #[cfg(feature = "Win32_Foundation")]
558 pub struct INPUT_RECORD {
559 pub EventType: u16,
560 pub Event: INPUT_RECORD_0,
561 }
562 #[cfg(feature = "Win32_Foundation")]
563 impl ::core::marker::Copy for INPUT_RECORD {}
564 #[cfg(feature = "Win32_Foundation")]
565 impl ::core::clone::Clone for INPUT_RECORD {
566 fn clone(&self) -> Self {
567 *self
568 }
569 }
570 #[repr(C)]
571 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
572 #[cfg(feature = "Win32_Foundation")]
573 pub union INPUT_RECORD_0 {
574 pub KeyEvent: KEY_EVENT_RECORD,
575 pub MouseEvent: MOUSE_EVENT_RECORD,
576 pub WindowBufferSizeEvent: WINDOW_BUFFER_SIZE_RECORD,
577 pub MenuEvent: MENU_EVENT_RECORD,
578 pub FocusEvent: FOCUS_EVENT_RECORD,
579 }
580 #[cfg(feature = "Win32_Foundation")]
581 impl ::core::marker::Copy for INPUT_RECORD_0 {}
582 #[cfg(feature = "Win32_Foundation")]
583 impl ::core::clone::Clone for INPUT_RECORD_0 {
584 fn clone(&self) -> Self {
585 *self
586 }
587 }
588 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
589 pub const KEY_EVENT: u32 = 1u32;
590 #[repr(C)]
591 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
592 #[cfg(feature = "Win32_Foundation")]
593 pub struct KEY_EVENT_RECORD {
594 pub bKeyDown: super::super::Foundation::BOOL,
595 pub wRepeatCount: u16,
596 pub wVirtualKeyCode: u16,
597 pub wVirtualScanCode: u16,
598 pub uChar: KEY_EVENT_RECORD_0,
599 pub dwControlKeyState: u32,
600 }
601 #[cfg(feature = "Win32_Foundation")]
602 impl ::core::marker::Copy for KEY_EVENT_RECORD {}
603 #[cfg(feature = "Win32_Foundation")]
604 impl ::core::clone::Clone for KEY_EVENT_RECORD {
605 fn clone(&self) -> Self {
606 *self
607 }
608 }
609 #[repr(C)]
610 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
611 #[cfg(feature = "Win32_Foundation")]
612 pub union KEY_EVENT_RECORD_0 {
613 pub UnicodeChar: u16,
614 pub AsciiChar: super::super::Foundation::CHAR,
615 }
616 #[cfg(feature = "Win32_Foundation")]
617 impl ::core::marker::Copy for KEY_EVENT_RECORD_0 {}
618 #[cfg(feature = "Win32_Foundation")]
619 impl ::core::clone::Clone for KEY_EVENT_RECORD_0 {
620 fn clone(&self) -> Self {
621 *self
622 }
623 }
624 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
625 pub const LEFT_ALT_PRESSED: u32 = 2u32;
626 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
627 pub const LEFT_CTRL_PRESSED: u32 = 8u32;
628 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
629 pub const MENU_EVENT: u32 = 8u32;
630 #[repr(C)]
631 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
632 pub struct MENU_EVENT_RECORD {
633 pub dwCommandId: u32,
634 }
635 impl ::core::marker::Copy for MENU_EVENT_RECORD {}
636 impl ::core::clone::Clone for MENU_EVENT_RECORD {
637 fn clone(&self) -> Self {
638 *self
639 }
640 }
641 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
642 pub const MOUSE_EVENT: u32 = 2u32;
643 #[repr(C)]
644 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
645 pub struct MOUSE_EVENT_RECORD {
646 pub dwMousePosition: COORD,
647 pub dwButtonState: u32,
648 pub dwControlKeyState: u32,
649 pub dwEventFlags: u32,
650 }
651 impl ::core::marker::Copy for MOUSE_EVENT_RECORD {}
652 impl ::core::clone::Clone for MOUSE_EVENT_RECORD {
653 fn clone(&self) -> Self {
654 *self
655 }
656 }
657 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
658 pub const MOUSE_HWHEELED: u32 = 8u32;
659 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
660 pub const MOUSE_MOVED: u32 = 1u32;
661 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
662 pub const MOUSE_WHEELED: u32 = 4u32;
663 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
664 pub const NLS_ALPHANUMERIC: u32 = 0u32;
665 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
666 pub const NLS_DBCSCHAR: u32 = 65536u32;
667 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
668 pub const NLS_HIRAGANA: u32 = 262144u32;
669 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
670 pub const NLS_IME_CONVERSION: u32 = 8388608u32;
671 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
672 pub const NLS_IME_DISABLE: u32 = 536870912u32;
673 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
674 pub const NLS_KATAKANA: u32 = 131072u32;
675 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
676 pub const NLS_ROMAN: u32 = 4194304u32;
677 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
678 pub const NUMLOCK_ON: u32 = 32u32;
679 #[doc = "*Required features: `\"Win32_System_Console\"`, `\"Win32_Foundation\"`*"]
680 #[cfg(feature = "Win32_Foundation")]
681 pub type PHANDLER_ROUTINE = ::core::option::Option<unsafe extern "system" fn(ctrltype: u32) -> super::super::Foundation::BOOL>;
682 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
683 pub const PSEUDOCONSOLE_INHERIT_CURSOR: u32 = 1u32;
684 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
685 pub const RIGHTMOST_BUTTON_PRESSED: u32 = 2u32;
686 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
687 pub const RIGHT_ALT_PRESSED: u32 = 1u32;
688 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
689 pub const RIGHT_CTRL_PRESSED: u32 = 4u32;
690 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
691 pub const SCROLLLOCK_ON: u32 = 64u32;
692 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
693 pub const SHIFT_PRESSED: u32 = 16u32;
694 #[repr(C)]
695 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
696 pub struct SMALL_RECT {
697 pub Left: i16,
698 pub Top: i16,
699 pub Right: i16,
700 pub Bottom: i16,
701 }
702 impl ::core::marker::Copy for SMALL_RECT {}
703 impl ::core::clone::Clone for SMALL_RECT {
704 fn clone(&self) -> Self {
705 *self
706 }
707 }
708 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
709 pub type STD_HANDLE = u32;
710 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
711 pub const STD_INPUT_HANDLE: STD_HANDLE = 4294967286u32;
712 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
713 pub const STD_OUTPUT_HANDLE: STD_HANDLE = 4294967285u32;
714 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
715 pub const STD_ERROR_HANDLE: STD_HANDLE = 4294967284u32;
716 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
717 pub const WINDOW_BUFFER_SIZE_EVENT: u32 = 4u32;
718 #[repr(C)]
719 #[doc = "*Required features: `\"Win32_System_Console\"`*"]
720 pub struct WINDOW_BUFFER_SIZE_RECORD {
721 pub dwSize: COORD,
722 }
723 impl ::core::marker::Copy for WINDOW_BUFFER_SIZE_RECORD {}
724 impl ::core::clone::Clone for WINDOW_BUFFER_SIZE_RECORD {
725 fn clone(&self) -> Self {
726 *self
727 }
728 }