forked from devspexx/csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pcinfo_BASIC.cs
30 lines (28 loc) · 1.02 KB
/
pcinfo_BASIC.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CPUE.Classes
{
class pcinfo_BASIC
{
DateTime basic_localtime = new DateTime();
string basic_computer_name = "";
string basic_computer_username = "";
string basic_computer_is64bit = "";
string basic_computer_windows_version = "";
string basic_computer_windows_build = "";
public void _loadBasicInfo()
{
basic_computer_name = Environment.MachineName;
basic_computer_username = Environment.UserName;
basic_computer_is64bit = Environment.Is64BitOperatingSystem == true ? "64bit" : "32bit";
basic_computer_windows_version = Environment.OSVersion.VersionString;
basic_computer_windows_build = Environment.OSVersion.Version.Build.ToString();
basic_localtime = new Microsoft.VisualBasic.Devices.Clock().LocalTime;
}
}
}