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); }
public static extern int SHGetStockIconInfo(SHSTOCKICONID siid, SHSTOCKICONFLAGS uFlags, ref SHSTOCKICONINFO info);