AdjustWindowRectExForDpi function Null safety user32

int AdjustWindowRectExForDpi(
  1. Pointer<RECT> lpRect,
  2. int dwStyle,
  3. int bMenu,
  4. int dwExStyle,
  5. int dpi

Calculates the required size of the window rectangle, based on the desired size of the client rectangle and the provided DPI. This window rectangle can then be passed to the CreateWindowEx function to create a window with a client area of the desired size.

BOOL AdjustWindowRectExForDpi(
  LPRECT lpRect,
  DWORD  dwStyle,
  BOOL   bMenu,
  DWORD  dwExStyle,
  UINT   dpi


int AdjustWindowRectExForDpi(
        Pointer<RECT> lpRect, int dwStyle, int bMenu, int dwExStyle, int dpi) =>
    _AdjustWindowRectExForDpi(lpRect, dwStyle, bMenu, dwExStyle, dpi);