-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutput.h
More file actions
54 lines (39 loc) · 1.72 KB
/
Copy pathoutput.h
File metadata and controls
54 lines (39 loc) · 1.72 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
/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- output.h
Abstract:
- This module contains the internal structures and definitions used
by the output (screen) component of the NT console subsystem.
Author:
- Therese Stowell (ThereseS) 12-Nov-1990
Revision History:
--*/
#pragma once
#include "screenInfo.hpp"
#include "server.h"
#include "../buffer/out/OutputCell.hpp"
#include "../buffer/out/OutputCellRect.hpp"
void ScreenBufferSizeChange(const COORD coordNewSize);
[[nodiscard]]
NTSTATUS DoCreateScreenBuffer();
std::vector<WORD> ReadOutputAttributes(const SCREEN_INFORMATION& screenInfo,
const COORD coordRead,
const size_t amountToRead);
std::wstring ReadOutputStringW(const SCREEN_INFORMATION& screenInfo,
const COORD coordRead,
const size_t amountToRead);
std::string ReadOutputStringA(const SCREEN_INFORMATION& screenInfo,
const COORD coordRead,
const size_t amountToRead);
void ScrollRegion(SCREEN_INFORMATION& screenInfo,
const SMALL_RECT scrollRect,
const std::optional<SMALL_RECT> clipRect,
const COORD destinationOrigin,
const wchar_t fillCharGiven,
const TextAttribute fillAttrsGiven);
VOID SetConsoleWindowOwner(const HWND hwnd, _Inout_opt_ ConsoleProcessHandle* pProcessData);
bool StreamScrollRegion(SCREEN_INFORMATION& screenInfo);
// For handling process handle state, not the window state itself.
void CloseConsoleProcessState();