How to tighten binding to a virtual machine
private string GetComputerID ()
{
QlmHardware hw = new QlmHardware();
string computerID = hw.GetUniqueSystemIdentifier2();
string qlm_uuid = GetUniqueVMIdentifier();
if (!String.IsNullOrEmpty(qlm_uuid))
{
computerID += "::" + qlm_uuid;
}
return computerID;
}
private string GetUniqueVMIdentifier ()
{
string qlm_uuid = string.Empty;
QlmHardware hw = new QlmHardware ();
if (hw.RunningOnVM())
{
if (lv.QlmLicenseObject.ReadCookie("qlm_uuid", 0, out qlm_uuid) == false)
{
qlm_uuid = Guid.NewGuid().ToString();
bool userLevelResult;
bool machineLevelResult;
string errorMessage;
lv.QlmLicenseObject.StoreCookie(qlm_uuid, "qlm_uuid", 0, out userLevelResult, out machineLevelResult, out errorMessage);
}
}
return qlm_uuid;
} PreviousHow does QLM protect an application hosted on a Virtual Machine (VM)?NextWhat happens to QLM license keys when a user upgrades to Windows 10
Last updated