diff --git a/SrcMod/Shell/Interop/Kernel32.cs b/SrcMod/Shell/Interop/Kernel32.cs index 82110c7..7bca82c 100644 --- a/SrcMod/Shell/Interop/Kernel32.cs +++ b/SrcMod/Shell/Interop/Kernel32.cs @@ -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);