资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Drawing;

namespace FileUploadAssistant
{
    class FileIcon
    {
        /// 
        ///  Get default icon from file
        /// 

        /// File name
        /// 
        /// Large icon or not
        /// default icon
        public static Icon GetFileIcon(string fileName bool largeIcon)
        {

            SHFILEINFO info = new SHFILEINFO(true);
            int cbFileInfo = Marshal.SizeOf(info);
            SHGFI flags;
            if (largeIcon)
                flags = SHGFI.Icon | SHGFI.LargeIcon | SHGFI.UseFileAttributes;
            els

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         186  2019-06-29 19:08  App.config
     文件        2205  2019-06-29 16:38  FileIcon.cs
     文件        4401  2019-07-02 00:14  FileUploadAssistant.csproj
     文件        1136  2019-07-02 00:12  FileUploadAssistant.sln
     文件        7355  2019-06-29 20:09  Form1.Designer.cs
     文件        6629  2019-07-02 00:23  Form1.cs
     文件        6024  2019-06-29 20:09  Form1.resx
     文件        1574  2019-06-29 16:38  IconImageProvider.cs
     文件        3724  2019-07-02 00:03  Program.cs
     目录           0  2019-07-02 00:09  Properties\
     文件        1336  2019-06-29 16:25  Properties\AssemblyInfo.cs
     文件        2879  2019-06-29 19:08  Properties\Resources.Designer.cs
     文件        5612  2019-06-29 16:25  Properties\Resources.resx
     文件        1119  2019-06-29 19:08  Properties\Settings.Designer.cs
     文件         249  2019-06-29 16:25  Properties\Settings.settings
     文件        4810  2019-07-01 23:59  SystemMenuHelper.cs
     目录           0  2019-07-02 00:09  bin\
     目录           0  2019-07-02 00:22  bin\Debug\
     文件       22016  2019-07-02 00:23  bin\Debug\FileUploadAssistant.exe
     文件         186  2019-06-29 19:08  bin\Debug\FileUploadAssistant.exe.config
     文件       34304  2019-07-02 00:23  bin\Debug\FileUploadAssistant.pdb
     文件        4286  2019-07-01 23:26  bin\Debug\favicon.ico
     目录           0  2019-07-02 00:24  bin\Release\
     文件        4286  2019-07-01 23:26  favicon.ico
     目录           0  2019-07-02 00:09  obj\
     目录           0  2019-07-02 00:15  obj\Debug\
     文件         831  2019-06-29 16:25  obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7292  2019-07-02 00:12  obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         180  2019-07-02 00:15  obj\Debug\FileUploadAssistant.Form1.resources
     文件         180  2019-07-02 00:15  obj\Debug\FileUploadAssistant.Properties.Resources.resources
     文件           0  2019-07-02 00:03  obj\Debug\FileUploadAssistant.csproj.CopyComplete
............此处省略13个文件信息

评论

共有 条评论