initial commit

This commit is contained in:
i2p
2026-08-27 18:29:08 +00:00
commit 89e4383061
454 changed files with 18399 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
using System;
using Microsoft.Win32;
namespace Intelix.Helper;
public static class CpuInfo
{
public static string GetName()
{
try
{
using RegistryKey registryKey = Registry.LocalMachine.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
return (registryKey?.GetValue("ProcessorNameString") as string) ?? (registryKey?.GetValue("VendorIdentifier") as string) ?? "Unknown";
}
catch
{
return "Unknown";
}
}
public static int GetLogicalCores()
{
try
{
return Environment.ProcessorCount;
}
catch
{
return 0;
}
}
}