terminal/src/server/DeviceHandle.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

47 lines
1,015 B
C++

/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- DeviceHandle.h
Abstract:
- This module helps create client and server handles for interprocess communication via the driver.
Author:
- Michael Niksa (MiNiksa) 14-Sept-2016
Revision History:
--*/
#pragma once
namespace DeviceHandle
{
[[nodiscard]]
NTSTATUS
CreateServerHandle(
_Out_ PHANDLE Handle,
_In_ BOOLEAN Inheritable
);
[[nodiscard]]
NTSTATUS
CreateClientHandle(
_Out_ PHANDLE Handle,
_In_ HANDLE ServerHandle,
_In_ PCWSTR Name,
_In_ BOOLEAN Inheritable
);
[[nodiscard]]
NTSTATUS
_CreateHandle(
_Out_ PHANDLE Handle,
_In_ PCWSTR DeviceName,
_In_ ACCESS_MASK DesiredAccess,
_In_opt_ HANDLE Parent,
_In_ BOOLEAN Inheritable,
_In_ ULONG OpenOptions
);
};