• 大小: 0.08M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 注册码  C#  c  源码  机器  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
using System.Management;

namespace Ex16_09
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        // 取得设备硬盘的卷标号
        public string GetDiskVolumeSerialNumber()
        {
            ManagementClass mc = new ManagementClass(“Win32_NetworkAdapterConfiguration“);
            Managementobject disk = new Managementobject(“win32_logicaldisk.deviceid=\“d:\““);
            disk.Get();
            return disk.GetPropertyValue(“VolumeSerialNumber“).ToString();
        }
        private void Form1_Load(object se

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-04-06 13:10  Ex16_09\
     文件         910  2007-07-11 11:35  Ex16_09.sln
     文件       15360  2007-07-11 11:35  Ex16_09.suo
     目录           0  2010-04-06 13:10  Ex16_09\bin\
     目录           0  2010-04-06 13:10  Ex16_09\bin\Debug\
     文件       24576  2007-07-11 11:35  Ex16_09\bin\Debug\Ex16_09.exe
     文件       24064  2007-07-11 11:35  Ex16_09\bin\Debug\Ex16_09.pdb
     文件        5632  2007-07-11 11:35  Ex16_09\bin\Debug\Ex16_09.vshost.exe
     文件        3268  2007-07-11 11:35  Ex16_09\Ex16_09.csproj
     文件        5868  2007-07-11 11:35  Ex16_09\Form1.cs
     文件        7472  2007-07-11 11:35  Ex16_09\Form1.designer.cs
     文件        5814  2007-07-11 11:35  Ex16_09\Form1.resx
     目录           0  2010-04-06 13:09  Ex16_09\obj\
     目录           0  2010-04-06 13:10  Ex16_09\obj\Debug\
     文件         842  2007-07-11 11:35  Ex16_09\obj\Debug\Ex16_09.csproj.GenerateResource.Cache
     文件       24576  2007-07-11 11:35  Ex16_09\obj\Debug\Ex16_09.exe
     文件         180  2007-07-11 11:35  Ex16_09\obj\Debug\Ex16_09.Form1.resources
     文件       24064  2007-07-11 11:35  Ex16_09\obj\Debug\Ex16_09.pdb
     文件         180  2007-07-11 11:35  Ex16_09\obj\Debug\Ex16_09.Properties.Resources.resources
     目录           0  2010-04-06 13:10  Ex16_09\obj\Debug\TempPE\
     文件         268  2007-07-11 11:35  Ex16_09\obj\Ex16_09.csproj.FileList.txt
     文件         466  2007-07-11 11:35  Ex16_09\Program.cs
     目录           0  2010-04-06 13:10  Ex16_09\Properties\
     文件        1162  2007-07-11 11:35  Ex16_09\Properties\AssemblyInfo.cs
     文件        2868  2007-07-11 11:35  Ex16_09\Properties\Resources.Designer.cs
     文件        5612  2007-07-11 11:35  Ex16_09\Properties\Resources.resx
     文件        1090  2007-07-11 11:35  Ex16_09\Properties\Settings.Designer.cs
     文件         249  2007-07-11 11:35  Ex16_09\Properties\Settings.settings
     目录           0  2010-04-06 13:09  Ex16_10\
     文件         910  2007-07-11 11:35  Ex16_10.sln
     文件       28672  2007-07-11 11:35  Ex16_10.suo
............此处省略25个文件信息

评论

共有 条评论