Skip to content
Snippets Groups Projects
Commit f0c9d8b7 authored by Dennis Eisold's avatar Dennis Eisold
Browse files

Merge branch 'master' into 'master'

Changed ProcessorId to SerialNumber

See merge request !21
parents a97917f5 172471a2
No related branches found
No related tags found
1 merge request!21Changed ProcessorId to SerialNumber
......@@ -45,7 +45,7 @@ namespace Wetterstation
ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_Processor");
foreach (ManagementObject queryObj in searcher.Get()) {
result = queryObj["ProcessorId"] + Environment.UserName;
result = queryObj["SerialNumber"] + Environment.UserName;
}
}
catch (ManagementException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment