remove debug prints, partially fix compatibility with vista rtm

This commit is contained in:
WitherOrNot 2025-03-02 20:04:15 -05:00
parent f2ad15e5a2
commit 1cf9823ad3
2 changed files with 1 additions and 7 deletions

View File

@ -116,13 +116,7 @@ namespace LibTSforge.Activators
throw new FormatException("Key Unique ID has invalid format.");
}
Console.WriteLine(group);
Console.WriteLine(shortauth);
shortauth |= (ulong)group << 41;
Console.WriteLine(shortauth);
pkeyData = BitConverter.GetBytes(shortauth);
}
else if (version == PSVersion.Win7)

View File

@ -165,7 +165,7 @@ namespace LibTSforge.SPP
uint count;
IntPtr pProductKeyIds;
status = SLGetInstalledProductKeyIds(sl.Handle, ref actId, out count, out pProductKeyIds);
status = SLGetSLIDList(sl.Handle, SLIDTYPE.SL_ID_PRODUCT_SKU, ref actId, SLIDTYPE.SL_ID_PKEY, out count, out pProductKeyIds);
if (status != 0 || count == 0)
{