资源简介
花血本在网上的一个开源库 ,本人编译后亲测20台清装xp sp2的机器,无问题,win7 和win8 也测试过,无问题。。
代码片段和文件信息
/*
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the “License“); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an “AS IS“ basis
WITHOUT WARRANTY OF ANY KIND either express or implied. See the License
for the specific language governing rights and limitations under the License.
The Original Code is the Open Hardware Monitor code.
The Initial Developer of the Original Code is
Michael Möller .
Portions created by the Initial Developer are Copyright (C) 2009-2010
the Initial Developer. All Rights Reserved.
Contributor(s):
Alternatively the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the “GPL“) or
the GNU Lesser General Public License Version 2.1 or later (the “LGPL“)
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL and not to allow others to
use your version of this file under the terms of the MPL indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above a recipient may use your version of this file under
the terms of any one of the MPL the GPL or the LGPL.
*/
using System;
using System.IO;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using OpenHardwareMonitor.GUI;
namespace OpenHardwareMonitor {
public static class Program {
[STAThread]
public static void Main() {
#if !DEBUG
Application.ThreadException +=
new ThreadExceptionEventHandler(Application_ThreadException);
Application.SetUnhandledExceptionMode(
UnhandledExceptionMode.CatchException);
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
#endif
if (!AllRequiredFilesAvailable())
Environment.Exit(0);
Application.EnableVisualstyles();
Application.SetCompatibleTextRenderingDefault(false);
using (GUI.MainForm form = new GUI.MainForm()) {
form.FormClosed += delegate(object sender FormClosedEventArgs e) {
Application.Exit();
};
Application.Run();
}
}
private static bool IsFileAvailable(string fileName) {
string path = Path.GetDirectoryName(Application.ExecutablePath) +
Path.DirectorySeparatorChar;
if (!File.Exists(path + fileName)) {
MessageBox.Show(“The following file could not be found: “ + fileName +
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1357 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Bin\Debug\Aga.Controls.License.txt
文件 1357 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Licenses\Aga.Controls.License.txt
文件 1901 2012-05-24 01:01 open-hardware-monitor_openSource\open-hardware-monitor_openSource\obj\Debug\OpenHardwareMonitor.csproj.FileListAbsolute.txt
文件 26225 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Bin\Debug\OpenHardwareMonitor.License.txt
文件 26225 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Licenses\OpenHardwareMonitor.License.txt
文件 508 2012-05-23 23:00 open-hardware-monitor_openSource\open-hardware-monitor_openSource\obj\Debug\OpenHardwareMonitorLib.csproj.FileListAbsolute.txt
文件 1274 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Bin\Debug\WinRing0.License.txt
文件 1274 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Licenses\WinRing0.License.txt
文件 216576 2012-05-23 23:09 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Bin\Debug\OpenHardwareMonitor.exe
文件 216576 2012-05-23 23:09 open-hardware-monitor_openSource\open-hardware-monitor_openSource\obj\Debug\OpenHardwareMonitor.exe
文件 11608 2012-05-24 01:01 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Bin\Debug\OpenHardwareMonitor.vshost.exe
文件 146432 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Bin\Debug\Aga.Controls.dll
文件 146432 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\External\Aga.Controls.dll
文件 274944 2012-05-23 23:09 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Bin\Debug\OpenHardwareMonitorLib.dll
文件 274944 2012-05-23 23:09 open-hardware-monitor_openSource\open-hardware-monitor_openSource\obj\Debug\OpenHardwareMonitorLib.dll
文件 14416 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Hardware\WinRing0.sys
文件 14544 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Hardware\WinRing0x64.sys
文件 180 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\External\.svn\all-wcprops
文件 318 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Hardware\Heatmaster\.svn\all-wcprops
文件 366 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Hardware\ATI\.svn\all-wcprops
文件 394 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Hardware\Nvidia\.svn\all-wcprops
文件 408 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Properties\.svn\all-wcprops
文件 411 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Utilities\.svn\all-wcprops
文件 414 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Hardware\TBalancer\.svn\all-wcprops
文件 440 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Licenses\.svn\all-wcprops
文件 442 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\WMI\.svn\all-wcprops
文件 590 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\.svn\all-wcprops
文件 600 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Collections\.svn\all-wcprops
文件 859 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Hardware\LPC\.svn\all-wcprops
文件 866 2012-05-23 18:45 open-hardware-monitor_openSource\open-hardware-monitor_openSource\Hardware\Mainboard\.svn\all-wcprops
............此处省略564个文件信息
相关资源
- C# httplistener 简单的高并发http服务器
- C# 读取word文档和图片
- C# 调用 bartender 打印的二次开发,含说
- MIKROTIK ROS API C#版,支持中文备注
- C#远程连接SQLserver 数据库
- C#从入门到精通第4版明日科技2017年
- C#调用主板蜂鸣器发声,Win7x64可用!
- c#企业人力资源管理系统源码
- C#中checkboxList控件用法总结
- c# 设置ip代理
- C#编写Modbus TCP客户端程序
- C#多线程编程 线程与窗体交互源码
- C# .Net Socket TCP 大数据 大文件 传输 经
- c# winform 用鼠标画拉出来的虚线框鼠标
- c# 如何删除datagridview中数据并删除数
- 用C#模仿银行ATM自动取款机系统
- C#读取AD域组织架构及用户
- asp.net用OpenPop.dll获取邮件列表和内容
- ESP8266 调试工具 C#开发
- C#资源\\修改文件备注源码
- c# 解压zip完整demo 带进度条
- PC/SC 微软智能卡C#开发框架库
- C#数据同步源代码
- C# outline 2013
- C#使用七牛云存储上传文件
- 基于GDI+的 图元绘制拾取 C#实现
- C# CoreAudioApi封装库
- C#winform画图程序附解决方案,挺不错
- c# AE 基于excel生成点线面shp矢量
- sa-C#自定义控件usercontrol--美化单选按
评论
共有 条评论