Desktop Functions: Smart Device Functions:
|
Search Results for "ICONINFO" in [All]user321: CreateIcon
static extern IntPtr CreateIconIndirect([In] ref ICONINFO piconinfo);
private struct ICONINFO
private static extern IntPtr CreateIconIndirect([In] ref ICONINFO iconInfo);
ICONINFO ii = new ICONINFO();
static extern IntPtr CreateIconIndirect([In] ref ICONINFO piconinfo);
private struct ICONINFO
private static extern IntPtr CreateIconIndirect([In] ref ICONINFO iconInfo);
ICONINFO ii = new ICONINFO(); 3: GetIconInfo
struct ICONINFO
static extern bool GetIconInfo(IntPtr hIcon, out ICONINFO piconinfo);
Public Declare Function GetIconInfo Lib "user32" (ByVal hIcon As IntPtr, ByRef piconinfo As ICONINFO) As Boolean
<System.Runtime.InteropServices.DllImportAttribute("user32.dll", EntryPoint:="GetIconInfo")> _
Public Shared Function GetIconInfo(ByVal hIcon As System.IntPtr, ByRef piconinfo As ICONINFO) As <System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.Bool)> Boolean
public class IconInfo : IDisposable {
private ICONINFO ii;
public IconInfo(IntPtr hCursor) {
if (!GetIconInfo(hCursor, out ii)) {
static extern bool GetIconInfo(IntPtr hIcon, out ICONINFO piconinfo);
struct ICONINFO { shell32
public static extern Int32 SHGetStockIconInfo(SHSTOCKICONID siid, SHGSI uFlags, ref SHSTOCKICONINFO psii);
Declare Function SHGetStockIconInfo Lib "Shell32.dll" (TODO) As TODO See SHSTOCKICONID, SHGSI and SHSTOCKICONINFO. SHGetStockIconInfo is supported on Windows Vista / 2008 or later.
SHSTOCKICONINFO sii = new SHSTOCKICONINFO();
sii.cbSize = (UInt32) Marshal.SizeOf(typeof(SHSTOCKICONINFO));
Marshal.ThrowExceptionForHR(SHGetStockIconInfo(SHSTOCKICONID.SIID_SHIELD,
Dim sii As New SHSTOCKICONINFO()
sii.cbSize = Marshal.SizeOf(GetType(SHSTOCKICONINFO))
If SHGetStockIconInfo(iconType, SHGSI.SHGSI_ICON Or SHGSI.SHGSI_SMALLICON, sii) = 0 Then Enums
IconInformation = IconAsterisk,
IconInformation = IconAsterisk
IconInformation As Long = IconAsterisk 6: SHGSI
shlwapi
MB_ICONINFORMATION = 0x00000040
MessageBoxCheckFlags.MB_OK | MessageBoxCheckFlags.MB_ICONINFORMATION, Structures9: ICONINFO
10: SHSTOCKICONINFO
|