Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "ICONINFO" in [All]

user32

.

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();

.
Summary
.

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

.
EDIT
.

   <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 {

.
Documentation
[GetIconInfo] on MSDN

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

.
Documentation
[SHGetStockIconInfo] on MSDN

Enums

.

     IconInformation    = IconAsterisk,

.

     IconInformation    = IconAsterisk

.

     IconInformation    As Long = IconAsterisk

.
Summary
Used by SHGetStockIconInfo to determine the information to be retrieved for a stock icon.
.
Summary

shlwapi

.

    MB_ICONINFORMATION    = 0x00000040

.

        MessageBoxCheckFlags.MB_OK | MessageBoxCheckFlags.MB_ICONINFORMATION,

Structures

.

struct ICONINFO

.

Structure ICONINFO

.
Documentation
[ICONINFO] on MSDN
.
Summary
.

public struct SHSTOCKICONINFO

.

    Public Structure SHSTOCKICONINFO

.
Documentation
[SHSTOCKICONINFO] on MSDN

 
Access PInvoke.net directly from VS: