<PackageReference Include="System.Drawing.Common" Version="9.0.0-preview.7.24405.4" />

PInvokeCore

static class PInvokeCore
public static BOOL BitBlt<T>(T hdc, int x, int y, int cx, int cy, HDC hdcSrc, int x1, int y1, ROP_CODE rop) where T : IHandle<HDC>

public static BOOL BitBlt<T>(HDC hdc, int x, int y, int cx, int cy, T hdcSrc, int x1, int y1, ROP_CODE rop) where T : IHandle<HDC>

public static HCURSOR CopyCursor<T>(T hImage, int cx, int cy, IMAGE_FLAGS flags = 0) where T : IHandle<HCURSOR>

public static HICON CopyIcon<T>(T hImage, int cx, int cy, IMAGE_FLAGS flags = 0) where T : IHandle<HICON>

public static BOOL DrawIcon<T>(HDC hDC, int x, int y, T hIcon) where T : IHandle<HICON>

public static BOOL DrawIconEx<T>(HDC hDC, int xLeft, int yTop, T hIcon, int cxWidth, int cyWidth, DI_FLAGS diFlags = 3) where T : IHandle<HICON>

public static BOOL GetClientRect<T>(T hWnd, out RECT lpRect) where T : IHandle<HWND>

public static ICONINFO GetIconInfo<T>(T icon) where T : IHandle<HICON>

public static bool GetObject<T>(HGDIOBJ h, out T object) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

public static uint GetPaletteEntries(HPALETTE hpal, Span<PALETTEENTRY> entries)

public static bool SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION uiAction, ref bool value, uint fWinIni = 0)

public static bool SystemParametersInfo(ref HIGHCONTRASTW highContrast)

public static bool SystemParametersInfo(ref NONCLIENTMETRICSW metrics)

public static bool TrySystemParametersInfoForDpi(ref NONCLIENTMETRICSW metrics, uint dpi)

Tries to get system parameter info for the dpi. dpi is ignored if "SystemParametersInfoForDpi()" API is not available on the OS that this application is running.