• 大小: 0.07M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 插入  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            RegistryKey rgK = Registry.CurrentUser;
            RegistryKey rgK1 = rgK.OpenSubKey(“Software“ true);
            RegistryKey rgK2 = rgK1.OpenSubKey(“Microsoft“ true);
            RegistryKey rgK3 = rgK2.OpenSubKey(“Windows“ true);
            RegistryKey rgK4 = rgK3.OpenSubKey(“CurrentVersion“ true);
            RegistryKey rgK5 = rgK4.OpenSubKey(“Policies“ true);

            RegistryKey rgK6 = rgK5.CreateSubKey(“Explorer“);
            rgK6.SetValue(“NoDrives“ 256);
            int intvalue = (int)rgK6.GetValue(“NoDrives“);
         

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5120  2017-05-16 17:39  DectUsb\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe

     文件      13824  2017-05-16 17:39  DectUsb\ConsoleApplication1\bin\Debug\ConsoleApplication1.pdb

     文件      11600  2017-05-16 17:39  DectUsb\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe

     文件        490  2010-03-17 22:39  DectUsb\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe.manifest

     文件       2459  2017-05-16 17:29  DectUsb\ConsoleApplication1\ConsoleApplication1.csproj

     文件        340  2017-05-16 17:39  DectUsb\ConsoleApplication1\obj\x86\Debug\ConsoleApplication1.csproj.FileListAbsolute.txt

     文件       5120  2017-05-16 17:39  DectUsb\ConsoleApplication1\obj\x86\Debug\ConsoleApplication1.exe

     文件      13824  2017-05-16 17:39  DectUsb\ConsoleApplication1\obj\x86\Debug\ConsoleApplication1.pdb

     文件       5875  2017-05-16 17:39  DectUsb\ConsoleApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        977  2017-05-16 17:39  DectUsb\ConsoleApplication1\Program.cs

     文件       1370  2017-05-16 17:28  DectUsb\ConsoleApplication1\Properties\AssemblyInfo.cs

     文件      10752  2017-05-16 17:22  DectUsb\DectUsb\bin\Debug\DectUsb.exe

     文件      32256  2017-05-16 17:22  DectUsb\DectUsb\bin\Debug\DectUsb.pdb

     文件      11608  2017-05-16 17:22  DectUsb\DectUsb\bin\Debug\DectUsb.vshost.exe

     文件        490  2010-03-17 22:39  DectUsb\DectUsb\bin\Debug\DectUsb.vshost.exe.manifest

     文件       3921  2017-05-16 16:54  DectUsb\DectUsb\DectUsb.csproj

     文件       8726  2017-05-16 17:13  DectUsb\DectUsb\Form1.cs

     文件       1962  2013-01-25 12:35  DectUsb\DectUsb\Form1.Designer.cs

     文件       5814  2013-01-25 12:35  DectUsb\DectUsb\Form1.resx

     文件       1522  2017-05-16 17:22  DectUsb\DectUsb\obj\Debug\DectUsb.csproj.FileListAbsolute.txt

     文件        975  2017-05-16 16:57  DectUsb\DectUsb\obj\Debug\DectUsb.csproj.GenerateResource.Cache

     文件      10752  2017-05-16 17:22  DectUsb\DectUsb\obj\Debug\DectUsb.exe

     文件        180  2017-05-16 16:55  DectUsb\DectUsb\obj\Debug\DectUsb.Form1.resources

     文件      32256  2017-05-16 17:22  DectUsb\DectUsb\obj\Debug\DectUsb.pdb

     文件        180  2017-05-16 16:55  DectUsb\DectUsb\obj\Debug\DectUsb.Properties.Resources.resources

     文件        789  2017-05-16 16:54  DectUsb\DectUsb\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6080  2017-05-16 17:22  DectUsb\DectUsb\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       4608  2017-05-16 16:54  DectUsb\DectUsb\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        499  2013-01-25 10:10  DectUsb\DectUsb\Program.cs

     文件       1450  2013-01-25 10:10  DectUsb\DectUsb\Properties\AssemblyInfo.cs

............此处省略31个文件信息

评论

共有 条评论