terminal/src/server/ProcessPolicy.h
Dustin Howett d4d59fa339 Initial release of the Windows Terminal source code
This commit introduces all of the Windows Terminal and Console Host source,
under the MIT license.
2019-05-02 15:29:04 -07:00

36 lines
803 B
C++

/*++
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;
};