InternalGetWindowIcon

Go to Home Page

Gets the specified window's icon directly from internal structures. This function is similar to sending WM_GETICON except no message processing is required

Syntax

HICON WINAPI InternalGetWindowIcon (
    HWND hwnd,
    UINT iconType
)

Parameters

hwnd
The window to get the icon from
iconType
The type of icon to be retrieved. All values supported by WM_GETICON can be used: ICON_SMALL (0), ICON_BIG (1) and ICON_SMALL2 (2)

Return Value

The icon specified or NULL on failure. Use GetLastError() for more information. The returned icon must be deleted with DestroyIcon

Remarks

This function is also known as NtUserInternalGetWindowText

web analytics