Skip to main content
Module

x/win32/mod.ts

Wraps some of the most common Win32 API calls using FFI to make them accessible to Deno.
Latest
import * as win32 from "https://deno.land/x/win32@0.1.1/mod.ts";

Variables

The Abort button was selected.

The Cancel button was selected.

The Continue button was selected.

The Ignore button was selected.

The No button was selected.

The OK button was selected.

The Retry button was selected.

The Try Again button was selected.

The Yes button was selected.

The message box contains three push buttons: Abort, Retry, and Ignore.

The user must respond to the message box before continuing work in the window identified by the hWnd parameter. However, the user can move to the windows of other threads and work in those windows.

The message box contains three push buttons: Cancel, Try Again, Continue. Use this message box type instead of MB_ABORTRETRYIGNORE.

Same as desktop of the interactive window station. For more information, see [Window Stations][1].

The first button is the default button. MB_DEFBUTTON1 is the default unless MB_DEFBUTTON2, MB_DEFBUTTON3, or MB_DEFBUTTON4 is specified.

The second button is the default button.

The third button is the default button.

The fourth button is the default button.

Adds a Help button to the message box. When the user clicks the Help button or presses F1, the system sends a [WM_HELP][] message to the owner.

An icon consisting of a lowercase letter i in a circle appears in the message box.

A stop-sign icon appears in the message box.

An exclamation-point icon appears in the message box.

A stop-sign icon appears in the message box.

An icon consisting of a lowercase letter i in a circle appears in the message box.

A question-mark icon appears in the message box. The question-mark message icon is no longer recommended because it does not clearly represent a specific type of message and because the phrasing of a message as a question could apply to any message type. In addition, users can confuse the message symbol question mark with Help information. Therefore, do not use this question mark message symbol in your message boxes. The system continues to support its inclusion only for backward compatibility.

A stop-sign icon appears in the message box.

An exclamation-point icon appears in the message box.

The message box contains one push button: OK. This is the default.

The message box contains two push buttons: OK and Cancel.

The message box contains two push buttons: Retry and Cancel.

The text is right-justified.

Displays message and caption text using right-to-left reading order on Hebrew and Arabic systems.

The caller is a service notifying the user of an event. The function displays a message box on the current active desktop, even if there is no user logged on to the computer.

The message box becomes the foreground window. Internally, the system calls the [SetForegroundWindow][1] function for the message box.

Same as MB_APPLMODAL except that the message box has the WS_EX_TOPMOST style. Use system-modal message boxes to notify the user of serious, potentially damaging errors that require immediate attention (for example, running out of memory). This flag has no effect on the user's ability to interact with windows other than those associated with hWnd.

Same as MB_APPLMODAL except that all the top-level windows belonging to the current thread are disabled if the hWnd parameter is NULL. Use this flag when the calling application or library does not have a window handle available but still needs to prevent input to other windows in the calling thread without suspending other threads.

The message box is created with the WS_EX_TOPMOST window style.

The message box contains two push buttons: Yes and No.

The message box contains three push buttons: Yes, No, and Cancel.

Functions

Windows represents Unicode characters using UTF-16 encoding, in which each character is encoded as a 16-bit value. UTF-16 characters are called wide characters, to distinguish them from 8-bit ANSI characters.

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. The message box returns an integer value that indicates which button the user clicked.