• 大小: 0.08M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace SetSystemTime
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        [DllImport(“kernel32.dll“ CharSet = CharSet.Ansi)]
        public extern static bool SetSystemTime(ref SYSTEMTIME time);
        [StructLayout(LayoutKind.Sequential)]
        public struct SYSTEMTIME
        {
            public short Year;
            public short Month;
            public short DayOfWeek;
            public short Day;
            public short Hour;
            public short Minute;
            public short Second;
            public short Miliseconds;
        }
        private void button1_Click(object sender EventArgs e)
        {
            SYSTEMTIME t = ne

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         929  2009-02-07 11:41  sj\01\SetSystemTime\SetSystemTime.sln
     文件       15872  2009-02-11 13:06  sj\01\SetSystemTime\SetSystemTime.suo
     文件        1901  2009-02-07 11:45  sj\01\SetSystemTime\SetSystemTime\Form1.cs
     文件        2767  2009-02-07 11:44  sj\01\SetSystemTime\SetSystemTime\Form1.Designer.cs
     文件        5814  2009-02-07 11:44  sj\01\SetSystemTime\SetSystemTime\Form1.resx
     文件         494  2009-02-07 11:41  sj\01\SetSystemTime\SetSystemTime\Program.cs
     文件        3772  2009-02-07 11:43  sj\01\SetSystemTime\SetSystemTime\SetSystemTime.csproj
     文件        9216  2009-02-07 11:45  sj\01\SetSystemTime\SetSystemTime\bin\Debug\SetSystemTime.exe
     文件       24064  2009-02-07 11:45  sj\01\SetSystemTime\SetSystemTime\bin\Debug\SetSystemTime.pdb
     文件       14328  2009-02-11 13:05  sj\01\SetSystemTime\SetSystemTime\bin\Debug\SetSystemTime.vshost.exe
     文件         490  2007-07-21 01:33  sj\01\SetSystemTime\SetSystemTime\bin\Debug\SetSystemTime.vshost.exe.manifest
     文件         888  2009-02-11 13:05  sj\01\SetSystemTime\SetSystemTime\obj\Debug\SetSystemTime.csproj.FileListAbsolute.txt
     文件         847  2009-02-07 11:44  sj\01\SetSystemTime\SetSystemTime\obj\Debug\SetSystemTime.csproj.GenerateResource.Cache
     文件        9216  2009-02-07 11:45  sj\01\SetSystemTime\SetSystemTime\obj\Debug\SetSystemTime.exe
     文件         180  2009-02-07 11:44  sj\01\SetSystemTime\SetSystemTime\obj\Debug\SetSystemTime.Form1.resources
     文件       24064  2009-02-07 11:45  sj\01\SetSystemTime\SetSystemTime\obj\Debug\SetSystemTime.pdb
     文件         180  2009-02-07 11:43  sj\01\SetSystemTime\SetSystemTime\obj\Debug\SetSystemTime.Properties.Resources.resources
     文件        1358  2009-02-07 11:41  sj\01\SetSystemTime\SetSystemTime\Properties\AssemblyInfo.cs
     文件        2876  2009-02-07 11:41  sj\01\SetSystemTime\SetSystemTime\Properties\Resources.Designer.cs
     文件        5612  2009-02-07 11:41  sj\01\SetSystemTime\SetSystemTime\Properties\Resources.resx
     文件        1098  2009-02-07 11:41  sj\01\SetSystemTime\SetSystemTime\Properties\Settings.Designer.cs
     文件         249  2009-02-07 11:41  sj\01\SetSystemTime\SetSystemTime\Properties\Settings.settings
     文件         911  2008-12-01 13:23  sl\SetTime.sln
     文件       13312  2009-02-07 11:46  sl\SetTime.suo
     文件        2698  2009-01-04 16:31  sl\SetTime\Form1.cs
     文件        9452  2008-12-29 10:07  sl\SetTime\Form1.Designer.cs
     文件        6008  2008-12-29 10:07  sl\SetTime\Form1.resx
     文件         488  2008-12-01 13:23  sl\SetTime\Program.cs
     文件        3760  2008-12-01 13:25  sl\SetTime\SetTime.csproj
     文件       12288  2009-02-07 11:44  sl\SetTime\bin\Debug\SetTime.exe
     文件       36352  2009-02-07 11:44  sl\SetTime\bin\Debug\SetTime.pdb
............此处省略13个文件信息

评论

共有 条评论