• 大小: 0.15M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签:

资源简介

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;
using System.Data.OleDb;
using Microsoft.Win32;
namespace TimeCloseComputer
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        public bool flag = true;
        string strg;//数据库路径
        OleDbConnection conn;
        OleDbCommand cmd;
        OleDbDataReader sdr;
      [StructLayout(LayoutKind.Sequential Pack=1)] 
      internal struct TokPriv1Luid 
      { 
         public int  Count; 
         public long  Luid; 
         public int  Attr; 
      } 

      

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-01-18 11:03  定时关机\
     目录           0  2013-01-18 11:03  定时关机\TimeCloseComputer\
     文件         941  2008-11-29 13:28  定时关机\TimeCloseComputer.sln
     目录           0  2013-01-18 11:03  定时关机\TimeCloseComputer\bin\
     目录           0  2013-01-18 11:03  定时关机\TimeCloseComputer\bin\Debug\
     文件      200704  2010-08-18 17:50  定时关机\TimeCloseComputer\bin\Debug\db.mdb
     文件       60928  2008-12-29 10:05  定时关机\TimeCloseComputer\bin\Debug\TimeCloseComputer.exe
     文件       42496  2008-12-29 10:05  定时关机\TimeCloseComputer\bin\Debug\TimeCloseComputer.pdb
     文件       14328  2009-01-13 10:17  定时关机\TimeCloseComputer\bin\Debug\TimeCloseComputer.vshost.exe
     文件         490  2007-07-21 01:33  定时关机\TimeCloseComputer\bin\Debug\TimeCloseComputer.vshost.exe.manifest
     文件      200704  2010-08-18 17:50  定时关机\TimeCloseComputer\db.mdb
     文件       16566  2008-11-29 14:15  定时关机\TimeCloseComputer\false.jpg
     文件       13438  2009-01-04 15:55  定时关机\TimeCloseComputer\Form1.cs
     文件       19139  2008-12-29 11:21  定时关机\TimeCloseComputer\Form1.Designer.cs
     文件       11012  2008-12-29 11:21  定时关机\TimeCloseComputer\Form1.resx
     目录           0  2013-01-18 11:03  定时关机\TimeCloseComputer\obj\
     目录           0  2013-01-18 11:03  定时关机\TimeCloseComputer\obj\Debug\
     目录           0  2012-05-02 09:54  定时关机\TimeCloseComputer\obj\Debug\Refactor\
     目录           0  2013-01-18 11:03  定时关机\TimeCloseComputer\obj\Debug\TempPE\
     文件        5120  2010-08-18 17:50  定时关机\TimeCloseComputer\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件        2314  2009-01-13 10:17  定时关机\TimeCloseComputer\obj\Debug\TimeCloseComputer.csproj.FileListAbsolute.txt
     文件         974  2008-12-29 10:05  定时关机\TimeCloseComputer\obj\Debug\TimeCloseComputer.csproj.GenerateResource.Cache
     文件       60928  2010-08-18 17:50  定时关机\TimeCloseComputer\obj\Debug\TimeCloseComputer.exe
     文件        3440  2008-12-29 10:05  定时关机\TimeCloseComputer\obj\Debug\TimeCloseComputer.Form1.resources
     文件       42496  2008-12-29 10:05  定时关机\TimeCloseComputer\obj\Debug\TimeCloseComputer.pdb
     文件       36037  2008-12-02 08:56  定时关机\TimeCloseComputer\obj\Debug\TimeCloseComputer.Properties.Resources.resources
     文件         498  2008-11-29 13:28  定时关机\TimeCloseComputer\Program.cs
     目录           0  2013-01-18 11:03  定时关机\TimeCloseComputer\Properties\
     文件        1390  2008-12-29 10:05  定时关机\TimeCloseComputer\Properties\AssemblyInfo.cs
     文件        3878  2008-11-29 16:26  定时关机\TimeCloseComputer\Properties\Resources.Designer.cs
     文件        6899  2008-11-29 16:26  定时关机\TimeCloseComputer\Properties\Resources.resx
............此处省略8个文件信息

评论

共有 条评论