CommonCore: - Constants for inter-program communication introduced
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Management;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Newtonsoft.Json;
|
||||
using Xylem.Common.CommonCore.Consts;
|
||||
|
||||
|
||||
namespace Xylem.Common.Cryptology.Security
|
||||
@@ -86,7 +87,7 @@ namespace Xylem.Common.Cryptology.Security
|
||||
/// </remarks>
|
||||
public static String GetPcNameFromHwId(String hardwareId)
|
||||
{
|
||||
if (!hardwareId.Contains(SeparatorPcFromHwId)) return "?";
|
||||
if (!hardwareId.Contains(SeparatorPcFromHwId)) return Constants.StrUnknown;
|
||||
var hwIdFields = hardwareId.Split(Convert.ToChar(SeparatorPcFromHwId));
|
||||
return hwIdFields[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user