From 91245122785b9bfc0296cb9f6f7eeeb7a8a3c79d Mon Sep 17 00:00:00 2001 From: dahall Date: Wed, 15 Jul 2020 13:50:02 -0600 Subject: [PATCH] Changed HANDLE params to HFILE in CreatePseudoConsole after some research. The function will take HFILE and HPIPE instances. --- PInvoke/Kernel32/WinCon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PInvoke/Kernel32/WinCon.cs b/PInvoke/Kernel32/WinCon.cs index 0d03a1af..b6e3817c 100644 --- a/PInvoke/Kernel32/WinCon.cs +++ b/PInvoke/Kernel32/WinCon.cs @@ -619,7 +619,7 @@ namespace Vanara.PInvoke // HANDLE hInput, _In_ HANDLE hOutput, _In_ DWORD dwFlags, _Out_ HPCON* phPC ); [DllImport(Lib.Kernel32, SetLastError = false, ExactSpelling = true)] [PInvokeData("ConsoleApi.h")] - public static extern HRESULT CreatePseudoConsole([In] COORD size, [In] HANDLE hInput, [In] HANDLE hOutput, [In] PSEUDOCONSOLE dwFlags, out SafeHPCON phPC); + public static extern HRESULT CreatePseudoConsole([In] COORD size, [In] HFILE hInput, [In] HFILE hOutput, [In] PSEUDOCONSOLE dwFlags, out SafeHPCON phPC); /// /// Sets the character attributes for a specified number of character cells, beginning at the specified coordinates in a screen buffer.