Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.37 KB

microsoft.ui.win32interop.geticonidfromicon.md

File metadata and controls

48 lines (32 loc) · 1.37 KB
title description ms.topic ms.date keywords ms.author author ms.localizationpriority
Win32Interop.GetIconIdFromIcon(IntPtr) method
Gets the `IconId` that corresponds to the specified *hicon*, if the provided `hicon` is valid.
article
02/08/2022
windows 10, windows 11, Windows App SDK, desktop development, winui, app sdk, C#, interop, Win32Interop.GetDisplayIdFromMonitor, GetDisplayIdFromMonitor
stwhi
stevewhims
low

Win32Interop.GetIconIdFromIcon(IntPtr) method

Reference

Definition

Namespace: Microsoft.UI

Gets the IconId that corresponds to the specified hicon, if the provided hicon is valid.

public static IconId GetIconIdFromIcon(IntPtr hicon);

Parameters

hicon IntPtr

The handle of the icon for which to get the IconId.

Returns

IconId

The icon identifier that corresponds to the specified hicon, if the provided hicon is valid. Otherwise, null.

Applies to

Product Introduced in
WinUI 3 Windows App SDK 1.0

See also