xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 71KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-10
  • 語(yǔ)言: C#
  • 標(biāo)簽: WMI??CPU??硬盤??網(wǎng)速??

資源簡(jiǎn)介

WMI 獲取計(jì)算機(jī)信息(cpu 硬盤 網(wǎng)卡 網(wǎng)速)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.Net;
using?System.Net.NetworkInformation;

using?System.Collections;
using?System.Management;

namespace?WINInfo
{
????public?partial?class?Form1?:?Form
????{?
????????public?ManagementScope?RemoteScope;//遠(yuǎn)程連接
????????public?ManagementScope?LocalScope;?//本機(jī)連接
????????public?bool?bLocalFlg;?//本機(jī)初始化標(biāo)識(shí)
????????public?bool?bRemoteFlg;

????????public?Form1()
????????{
????????????InitializeComponent();
????????????bLocalFlg?=?true;
????????????bRemoteFlg?=?true;
????????}

????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{

????????}

????????private?void?GetWinInfo_Click(object?sender?EventArgs?e)
????????{
????????????try
????????????{
????????????????if?(bRemoteFlg)
????????????????{
????????????????????//判斷遠(yuǎn)程是否能連接

????????????????????Ping?pingSender?=?new?Ping();?//Ping既然是類,為何不變色?
????????????????????PingReply?reply?=?pingSender.Send(this.TextIP.Text);
????????????????????if?(reply.Status?==?IPStatus.Success)
????????????????????{
????????????????????????string?message?=?string.Format(“地址:{0}連接測(cè)試成功!“?this.TextIP.Text);
????????????????????????MessageBox.Show(message);
????????????????????}
????????????????????else
????????????????????{
????????????????????????string?message?=?string.Format(“地址:{0}連接測(cè)試失敗!“?this.TextIP.Text);
????????????????????????MessageBox.Show(message);

????????????????????????ListViewItem?Item1?=?new?ListViewItem(new?string[]?{?this.TextIP.Text?““?““?““?““?“““連接失敗“?}?-1);
????????????????????????this.ListRec.Items.Add(Item1);

????????????????????????return;
????????????????????}

????????????????????//連接
????????????????????ConnectionOptions?connection?=?new?ConnectionOptions();
????????????????????connection.Username?=?this.TextUserName.Text;
????????????????????connection.Password?=?this.TextPassword.Text;
????????????????????connection.Authority?=?“ntlmdomain:“;

????????????????????string?strPath?=?“\\\\“+this.TextIP.Text?+?“\\root\\CIMV2“;

????????????????????RemoteScope?=?new?ManagementScope(
????????????????????????strPath??connection);
????????????????????RemoteScope.Connect();

????????????????????bRemoteFlg?=?false;
????????????????}
????????????????

????????????????//?獲取物理內(nèi)存
????????????????string?strMemory?=?““;

????????????????objectQuery?query?=?new?objectQuery(“SELECT?*?FROM?Win32_OperatingSystem“);

????????????????ManagementobjectSearcher?searcher?=
????????????????????new?ManagementobjectSearcher(RemoteScope?query);

????????????????foreach?(Managementobject?queryObj?in?searcher.Get())
????????????????{
????????????????????double?nTotalMer?=?Convert.ToDouble(queryObj[“TotalVisibleMemorySize“]);
????????????????????double?nFreeMer?=?Convert.ToDouble(queryObj[“FreePhysicalMemory“]);

??????

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件??????40960??2012-09-17?09:59??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\bin\Debug\Interop.MMC20.dll

?????文件??????16896??2012-09-20?10:41??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\bin\Debug\WINInfo.exe

?????文件??????32256??2012-09-20?10:41??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\bin\Debug\WINInfo.pdb

?????文件??????14328??2012-09-20?10:42??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\bin\Debug\WINInfo.vshost.exe

?????文件????????490??2007-07-21?02:33??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\bin\Debug\WINInfo.vshost.exe.manifest

?????文件??????14012??2012-09-20?10:41??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\Form1.cs

?????文件??????10434??2012-09-20?10:41??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\Form1.Designer.cs

?????文件???????5814??2012-09-20?10:41??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\Form1.resx

?????文件??????40960??2012-09-17?09:59??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\obj\Debug\Interop.MMC20.dll

?????文件????????730??2012-09-20?10:42??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\obj\Debug\WINInfo.csproj.FileListAbsolute.txt

?????文件????????847??2012-09-20?10:41??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\obj\Debug\WINInfo.csproj.GenerateResource.Cache

?????文件????????544??2012-09-17?09:59??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\obj\Debug\WINInfo.csproj.ResolveComReference.cache

?????文件??????16896??2012-09-20?10:41??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\obj\Debug\WINInfo.exe

?????文件????????180??2012-09-20?10:41??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\obj\Debug\WINInfo.Form1.resources

?????文件??????32256??2012-09-20?10:41??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\obj\Debug\WINInfo.pdb

?????文件????????180??2012-09-17?10:01??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\obj\Debug\WINInfo.Properties.Resources.resources

?????文件????????488??2012-09-17?09:15??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\Program.cs

?????文件???????1356??2012-09-17?09:15??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\Properties\AssemblyInfo.cs

?????文件???????2864??2012-09-17?09:15??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\Properties\Resources.Designer.cs

?????文件???????5612??2012-09-17?09:15??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\Properties\Resources.resx

?????文件???????1092??2012-09-17?09:15??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\Properties\Settings.Designer.cs

?????文件????????249??2012-09-17?09:15??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\Properties\Settings.settings

?????文件????????378??2012-09-17?09:50??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\UserControl1.cs

?????文件???????1118??2012-09-17?09:50??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\UserControl1.Designer.cs

?????文件???????4209??2012-09-17?10:01??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\WINInfo.csproj

?????文件????????911??2012-09-17?09:15??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo.sln

????..A..H.?????16896??2012-09-20?10:09??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo.suo

?????目錄??????????0??2012-09-20?10:45??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\obj\Debug\Refactor

?????目錄??????????0??2012-09-20?10:45??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\obj\Debug\TempPE

?????目錄??????????0??2012-09-20?10:45??獲取計(jì)算機(jī)性能數(shù)據(jù)\WINInfo\bin\Debug

............此處省略10個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源