Windows User32 declarations for window creation, class registration, message dispatch, monitor and placement queries, cursor and capture control, device-context acquisition, and pointer-sized window-value access.
WNDPROC: window-procedure callback schema with HWND, one message ordinal, wParam, and lParam parameters and Intx result.HBRUSH, HICON, HMENU, HMONITOR, and HWND: typed window-system handle schemas.HCURSOR: cursor-handle alias of HICON.HDC and HGLRC: device-context and OpenGL rendering-context handle schemas.POINT, RECT, MSG, and MONITORINFO: geometry and message schemas.WINDOWPLACEMENT and WNDCLASSW: window placement and class-registration schemas."windows/user32" use
"control" use
{} () {} [
POINT fieldCount printStack _:;
RECT 3 fieldName printStack _:;
MSG 5 fieldName printStack _:;
] "main" exportFunction
2
"bottom"
"pt"
RegisterClassW.lpszClassName, CreateWindowExW.lpClassName, CreateWindowExW.lpWindowName, RegisterClassW.lpszMenuName, and LoadCursorW.lpCursorName are raw Natx inputs commonly used as zero-terminated UTF-16 addresses.ClientToScreen.lpPoint, GetMonitorInfoW.lpmi, PeekMessageW.lpMsg, and GetWindowPlacement.lpwndpl are caller-owned writable result storage.RegisterClassW.lpWndClass, SetWindowPlacement.lpwndpl, DispatchMessageW.lpMsg, and TranslateMessage.lpMsg are borrowed caller-owned inputs.Int32 status, and a zero status commonly represents failure or absence of result.CreateWindowExW, MonitorFromWindow, GetDC, LoadCursorW, and SetCapture return typed handles.GetWindowLongPtrW and SetWindowLongPtrW return pointer-sized values directly and do not write through separate output pointers.WNDPROC receives the target window handle, one message ordinal, and pointer-sized wParam and lParam payloads.MSG stores the same message ordinal and payload fields together with timestamp and cursor position.DispatchMessageW forwards queued MSG content to the registered WNDPROC.TranslateMessage performs message translation before dispatch.DefWindowProcW is the default processing path for messages not handled by the custom WNDPROC.RegisterClassW publishes one WNDCLASSW description, CreateWindowExW creates one HWND, and GetDC acquires one HDC for that window.CreateWindowExW produces one window handle, and DestroyWindow destroys one window handle.ShowWindow, SetWindowPos, GetWindowPlacement, and SetWindowPlacement query or change one window placement or visibility state.SetCapture and ReleaseCapture form the mouse-capture pair.MonitorFromWindow and GetMonitorInfoW describe the monitor associated with one window.GetDC returns one HDC handle associated with the selected window. This module does not declare the matching release function.LoadCursorW returns one cursor handle suitable for class registration or later cursor use.CreateWindowExW and DestroyWindow: window creation and destruction functions.ShowWindow, SetWindowPos, GetWindowPlacement, and SetWindowPlacement: visibility, positioning, and restore-placement functions.RegisterClassW and DefWindowProcW: class registration and default window-procedure functions.DispatchMessageW, TranslateMessage, and PeekMessageW: queued-message translation and dispatch functions.MonitorFromWindow and GetMonitorInfoW: monitor lookup and monitor-description functions.SetCapture, ReleaseCapture, SetCursorPos, ShowCursor, and LoadCursorW: capture and cursor-control functions.GetDC and ClientToScreen: device-context acquisition and coordinate-conversion functions.GetWindowLongPtrW and SetWindowLongPtrW: pointer-sized window-value access functions.GetWindowLongPtrW and SetWindowLongPtrW are selected through uif.GetWindowLongW and SetWindowLongW and exposes them through the pointer-sized names.Intx.GetWindowLongPtrW reads one pointer-sized window-associated value, and SetWindowLongPtrW writes one pointer-sized value and returns the previous one.Printing imported names during compilation shows the exact imported signatures. The printed window-value access signature already reflects the pointer-sized public name selected for the target.
"windows/user32" use
"control" use
{} Int32 {} [
@CreateWindowExW printStack _:;
@GetWindowLongPtrW printStack _:;
@GetDC printStack _:;
0
] "main" exportFunction
{dwExStyle: Nat32; lpClassName: Natx; lpWindowName: Natx; dwStyle: Nat32; X: Int32; Y: Int32; nWidth: Int32; nHeight: Int32; hWndParent: {WND: (); unused: Int32;} Cref; hMenu: {MENU: (); unused: Int32;} Cref; hInstance: {INSTANCE: (); unused: Int32;} Cref; lpParam: Natx;} {WND: (); unused: Int32;} Cref {convention: "";} codeRef
{hWnd: {WND: (); unused: Int32;} Cref; nIndex: Int32;} Intx {convention: "";} codeRef
{hWnd: {WND: (); unused: Int32;} Cref;} {DC: (); unused: Int32;} Cref {convention: "";} codeRef