Added interop types for GetConsoleScreenBufferInfo

This commit is contained in:
That-One-Nerd 2023-05-27 16:25:04 -04:00
parent 2f5214d3b2
commit e9b915dec5
4 changed files with 23 additions and 1 deletions

View File

@ -2,10 +2,14 @@
internal static partial class Kernel32
{
[LibraryImport("kernel32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static partial bool GetConsoleScreenBufferInfo(nint hConsoleOutput);
[LibraryImport("kernel32.dll", SetLastError = true)]
public static partial uint GetFinalPathNameByHandleA(nint hFile, [MarshalAs(UnmanagedType.LPTStr)] string lpszFilePath,
uint cchFilePath, uint dwFlags);
[LibraryImport("kernel32.dll")]
[LibraryImport("kernel32.dll", SetLastError = true)]
public static partial nuint GlobalSize(nint hPtr);
}

View File

@ -0,0 +1,6 @@
namespace SrcMod.Shell.Interop.ObjectModels;
internal struct ConsoleScreenBufferInfo
{
}

View File

@ -0,0 +1,6 @@
namespace SrcMod.Shell.Interop.ObjectModels;
internal struct Coord
{
}

View File

@ -0,0 +1,6 @@
namespace SrcMod.Shell.Interop.ObjectModels;
internal struct SmallRect
{
}