Changed HANDLE params to HFILE in CreatePseudoConsole after some research. The function will take HFILE and HPIPE instances.

pull/161/head
dahall 2020-07-15 13:50:02 -06:00
parent e82b63b8c6
commit 9124512278
1 changed files with 1 additions and 1 deletions

View File

@ -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);
/// <summary>
/// Sets the character attributes for a specified number of character cells, beginning at the specified coordinates in a screen buffer.