forked from microsoft/terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcessPolicy.h
More file actions
35 lines (25 loc) · 803 Bytes
/
Copy pathProcessPolicy.h
File metadata and controls
35 lines (25 loc) · 803 Bytes
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
/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- ProcessPolicy.h
Abstract:
- This file defines a policy framework that applies to attached client applications
to restrict or enforce certain behavior depending on the client app type.
Author:
- Michael Niksa (miniksa) 06-Oct-2017
--*/
#pragma once
class ConsoleProcessPolicy
{
public:
~ConsoleProcessPolicy();
static ConsoleProcessPolicy s_CreateInstance(const HANDLE hProcess);
bool CanReadOutputBuffer() const;
bool CanWriteInputBuffer() const;
private:
ConsoleProcessPolicy(const bool fCanReadOutputBuffer,
const bool fCanWriteInputBuffer);
const bool _fCanReadOutputBuffer;
const bool _fCanWriteInputBuffer;
};