ShowWindowAsync function (winuser.h)
Sets the show state of a window without waiting for the operation to complete.
Syntax
BOOL ShowWindowAsync(
[in] HWND hWnd,
[in] int nCmdShow
);
Parameters
[in] hWnd
Type: HWND
A handle to the window.
[in] nCmdShow
Type: int
Controls how the window is to be shown. For a list of possible values, see the description of the ShowWindow function.
Return value
Type: BOOL
If the operation was successfully started, the return value is nonzero.
Remarks
This function posts a show-window event to the message queue of the given window. An application can use this function to avoid becoming nonresponsive while waiting for a nonresponsive application to finish processing a show-window event.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | winuser.h (include Windows.h) |
Library | User32.lib |
DLL | User32.dll |
API set | ext-ms-win-ntuser-window-l1-1-4 (introduced in Windows 10, version 10.0.14393) |
See also
Conceptual
Reference