DestroyWindow function user32

Win32Result<bool> DestroyWindow(
  1. HWND hWnd
)

Destroys the specified window.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-destroywindow.

Implementation

Win32Result<bool> DestroyWindow(HWND hWnd) {
  resolveGetLastError();
  final result_ = _DestroyWindow(hWnd);
  return .new(value: result_ != FALSE, error: GetLastError());
}