import { type HINSTANCE, type HCURSOR, type HICON, type HMENU, type HWND } from '../ctypes.js'; import { type POINT } from '../structs.js'; import type { IDC_, IDI_, OIC_, OCR_, OBM_, IMAGE_, LR_, MB_ } from '../consts.js'; /** * Destroys a cursor and frees any memory the cursor occupied. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-destroycursor */ export declare function DestroyCursor(hCursor: HCURSOR): boolean; /** * Destroys an icon and frees any memory the cursor occupied. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-destroyicon */ export declare function DestroyIcon(hIcon: HICON): boolean; /** * Destroys the specified menu and frees any memory that the menu occupies. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-destroymenu */ export declare function DestroyMenu(hMenu: HMENU): boolean; /** * Retrieves the cursor's position, in screen coordinates. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getcursorpos */ export declare function GetCursorPos(): POINT | null; /** * Loads the specified cursor resource from the executable (.exe) file associated with an application instance. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-loadcursorw */ export declare function LoadCursor(hInstance: HINSTANCE | null, cursorName: IDC_ | string): HCURSOR | null; /** * Loads the specified icon resource from the executable (.exe) file associated with an application instance. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-loadiconw */ export declare function LoadIcon(hInstance: HINSTANCE | null, iconName: IDI_ | string): HICON | null; /** * Loads an icon, cursor, animated cursor, or bitmap. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-loadimagew */ export declare function LoadImage(hInstance: HINSTANCE | null, name: IDC_ | IDI_ | OIC_ | OCR_ | OBM_ | string, type: IMAGE_, cx: number, cy: number, load: LR_): HICON | null; /** * Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, * such as status or error information. * * Note: you may use the IDxxx constants from libwin32/consts to test the returned value. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messageboxw */ export declare function MessageBox(hWnd: HWND | null, text: string | null, caption: string | null, type: MB_): number; /** * Creates, displays, and operates a message box. Currently `MessageBoxEx` and `MessageBox` work the same way. * * Note: you may use the IDxxx constants from libwin32/consts to test the returned value. * * https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messageboxexw */ export declare function MessageBoxEx(hWnd: HWND | null, text: string | null, caption: string | null, type: MB_, languageId: number): number;