• 大小: 0.04M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: 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;

namespace StopCloseComputer
{
    public partial class Frm_Main : Form
    {
        public Frm_Main()
        {
            InitializeComponent();
        }
        private int isClose = 0;//声明一个变量表示是否关机
        private const int WM_QUERYENDSESSION = 0x0011;//系统发送的关机命令
        protected override void WndProc(ref Message m)//此方法用于处理Windows消息
        {
            switch (m.Msg)//获取消息值
            {
                case WM_QUERYENDSESSION:
                    m.Result = (IntPtr)isClose;//为了响应消息处理,设置返回值
                    break;
                default://默认执行
                    bas

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

     文件       8704  2016-12-22 02:56  StopCloseComputer\StopCloseComputer\bin\Debug\StopCloseComputer.exe

     文件      30208  2016-12-22 02:56  StopCloseComputer\StopCloseComputer\bin\Debug\StopCloseComputer.pdb

     文件      14328  2016-12-22 02:56  StopCloseComputer\StopCloseComputer\bin\Debug\StopCloseComputer.vshost.exe

     文件        490  2016-12-22 02:55  StopCloseComputer\StopCloseComputer\bin\Debug\StopCloseComputer.vshost.exe.manifest

     文件       1429  2016-12-21 17:40  StopCloseComputer\StopCloseComputer\Frm_Main.cs

     文件       2814  2016-12-21 17:40  StopCloseComputer\StopCloseComputer\Frm_Main.designer.cs

     文件       5814  2016-12-21 17:40  StopCloseComputer\StopCloseComputer\Frm_Main.resx

     文件       7056  2016-12-22 02:55  StopCloseComputer\StopCloseComputer\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       2225  2016-12-22 02:55  StopCloseComputer\StopCloseComputer\obj\Debug\StopCloseComputer.csproj.FileListAbsolute.txt

     文件        850  2016-12-22 02:55  StopCloseComputer\StopCloseComputer\obj\Debug\StopCloseComputer.csproj.GenerateResource.Cache

     文件       8704  2016-12-22 02:55  StopCloseComputer\StopCloseComputer\obj\Debug\StopCloseComputer.exe

     文件        180  2016-12-22 02:54  StopCloseComputer\StopCloseComputer\obj\Debug\StopCloseComputer.Frm_Main.resources

     文件      30208  2016-12-22 02:54  StopCloseComputer\StopCloseComputer\obj\Debug\StopCloseComputer.pdb

     文件        180  2016-12-22 02:54  StopCloseComputer\StopCloseComputer\obj\Debug\StopCloseComputer.Properties.Resources.resources

     文件       4608  2016-12-22 04:15  StopCloseComputer\StopCloseComputer\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        501  2016-12-21 17:40  StopCloseComputer\StopCloseComputer\Program.cs

     文件       1366  2016-12-21 21:07  StopCloseComputer\StopCloseComputer\Properties\AssemblyInfo.cs

     文件       2874  2016-12-21 21:07  StopCloseComputer\StopCloseComputer\Properties\Resources.Designer.cs

     文件       5612  2016-12-21 21:07  StopCloseComputer\StopCloseComputer\Properties\Resources.resx

     文件       1117  2016-12-21 21:07  StopCloseComputer\StopCloseComputer\Properties\Settings.Designer.cs

     文件        249  2016-12-21 21:07  StopCloseComputer\StopCloseComputer\Properties\Settings.settings

     文件       4003  2016-12-21 17:40  StopCloseComputer\StopCloseComputer\StopCloseComputer.csproj

     文件        941  2016-12-21 16:08  StopCloseComputer\StopCloseComputer.sln

     目录          0  2016-12-22 04:15  StopCloseComputer\StopCloseComputer\obj\Debug\Refactor

     目录          0  2016-12-22 04:15  StopCloseComputer\StopCloseComputer\obj\Debug\TempPE

     目录          0  2016-12-22 02:56  StopCloseComputer\StopCloseComputer\bin\Debug

     目录          0  2016-12-22 02:55  StopCloseComputer\StopCloseComputer\bin\Release

     目录          0  2016-12-22 04:15  StopCloseComputer\StopCloseComputer\obj\Debug

     目录          0  2016-12-22 02:55  StopCloseComputer\StopCloseComputer\bin

     目录          0  2016-12-22 02:54  StopCloseComputer\StopCloseComputer\obj

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

评论

共有 条评论