Example #1
0
        /// <summary>
        ///   Gets information about a icon from a icon handle.
        /// </summary>
        /// 
        public static IconHandleInfo GetIconInfo(IconHandle iconHandle)
        {
            if (iconHandle == null)
                return null;

            NativeMethods.ICONINFO iconInfo;
            if (!NativeMethods.GetIconInfo(iconHandle.Handle, out iconInfo))
                return null;
            return new IconHandleInfo(iconInfo);
        }