Added the GetConsoleWindow function.

This commit is contained in:
That-One-Nerd 2023-05-27 16:34:55 -04:00
parent aa0d04b094
commit d6da6ca598

View File

@ -6,6 +6,9 @@ internal static partial class Kernel32
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool GetConsoleScreenBufferInfo(nint hConsoleOutput, out ConsoleScreenBufferInfo lpConsoleScreenBufferInfo);
[LibraryImport("kernel32.dll", SetLastError = true)]
public static partial nint GetConsoleWindow();
[LibraryImport("kernel32.dll", SetLastError = true)]
public static partial uint GetFinalPathNameByHandleA(nint hFile, [MarshalAs(UnmanagedType.LPTStr)] string lpszFilePath,
uint cchFilePath, uint dwFlags);