bluelight Testversion fertiggestellt

This commit is contained in:
Damian Wessels
2023-01-20 19:13:32 +01:00
parent a306dc1e57
commit eb0f38caa0
9 changed files with 78 additions and 64 deletions

View File

@@ -24,15 +24,15 @@ namespace SanShared
public Dongle(uint ProductCode)
{
#if !DEBUG
//if !DEBUG
this.FirmCode = 103086;
this.ProductCode = ProductCode;
#else
/*#else
return;
this.FirmCode = 10;
this.ProductCode = 1;
#endif
*/
cmApi = new Api();
cmCred = new CmCredential();
@@ -102,22 +102,15 @@ namespace SanShared
public void CleanDongle()
{
#if DEBUG
return;
#endif
cmApi.CmRelease(hcmse);
}
public bool CheckDongleVorhanden()
{
#if LAPTOP
return true;
#else
if (hcmse == null)
return false;
else
return true;
#endif
}
public string GetDongleSerial()
@@ -146,9 +139,6 @@ namespace SanShared
public bool IsLicensed(byte neededMask)
{
#if DEBUG
return true;
#else
uint DongleFeature = GetFeatureMap();
//Trace.WriteLine("DongleFeature: " + DongleFeature);
@@ -158,7 +148,6 @@ namespace SanShared
if ((DongleFeatureB & neededMask) == neededMask)
return true;
return false;
#endif
}
public void Dispose()