Exemplo n.º 1
0
 private static string MacId()
 {
     return(ComputerInfo.identifier("Win32_NetworkAdapterConfiguration", "MACAddress", "IPEnabled"));
 }
Exemplo n.º 2
0
 public static string GetComputerId()
 {
     return(ComputerInfo.GetHash("CPU >> " + ComputerInfo.CpuId() + "\nBIOS >> " + ComputerInfo.BiosId() + "\nBASE >> " + ComputerInfo.BaseId()));
 }
Exemplo n.º 3
0
 private static string VideoId()
 {
     return(ComputerInfo.identifier("Win32_VideoController", "DriverVersion") + ComputerInfo.identifier("Win32_VideoController", "Name"));
 }
Exemplo n.º 4
0
 private static string GetHash(string s)
 {
     return(ComputerInfo.GetHexString(new MD5CryptoServiceProvider().ComputeHash(new ASCIIEncoding().GetBytes(s))));
 }
Exemplo n.º 5
0
 private static string BaseId()
 {
     return(ComputerInfo.identifier("Win32_BaseBoard", "Model") + ComputerInfo.identifier("Win32_BaseBoard", "Manufacturer") + ComputerInfo.identifier("Win32_BaseBoard", "Name") + ComputerInfo.identifier("Win32_BaseBoard", "SerialNumber"));
 }
Exemplo n.º 6
0
 private static string DiskId()
 {
     return(ComputerInfo.identifier("Win32_DiskDrive", "Model") + ComputerInfo.identifier("Win32_DiskDrive", "Manufacturer") + ComputerInfo.identifier("Win32_DiskDrive", "Signature") + ComputerInfo.identifier("Win32_DiskDrive", "TotalHeads"));
 }
Exemplo n.º 7
0
 private static string BiosId()
 {
     return(ComputerInfo.identifier("Win32_BIOS", "Manufacturer") + ComputerInfo.identifier("Win32_BIOS", "SMBIOSBIOSVersion") + ComputerInfo.identifier("Win32_BIOS", "IdentificationCode") + ComputerInfo.identifier("Win32_BIOS", "SerialNumber") + ComputerInfo.identifier("Win32_BIOS", "ReleaseDate") + ComputerInfo.identifier("Win32_BIOS", "Version"));
 }