Exemplo n.º 1
0
    public static IntPtr GetIcon(SHSTOCKICONID identifier, SHSTOCKICONFLAGS flags)
    {
        SHSTOCKICONINFO info = new SHSTOCKICONINFO();

        info.cbSize = Convert.ToUInt32(Marshal.SizeOf(typeof(SHSTOCKICONINFO)));
        Marshal.ThrowExceptionForHR(SHGetStockIconInfo(identifier, flags, ref info));
        return(info.hIcon);
    }
Exemplo n.º 2
0
 public static extern int SHGetStockIconInfo(SHSTOCKICONID siid, SHSTOCKICONFLAGS uFlags, ref SHSTOCKICONINFO info);