remove debug prints, partially fix compatibility with vista rtm
This commit is contained in:
parent
f2ad15e5a2
commit
1cf9823ad3
@ -116,13 +116,7 @@ namespace LibTSforge.Activators
|
|||||||
throw new FormatException("Key Unique ID has invalid format.");
|
throw new FormatException("Key Unique ID has invalid format.");
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine(group);
|
|
||||||
Console.WriteLine(shortauth);
|
|
||||||
|
|
||||||
shortauth |= (ulong)group << 41;
|
shortauth |= (ulong)group << 41;
|
||||||
|
|
||||||
Console.WriteLine(shortauth);
|
|
||||||
|
|
||||||
pkeyData = BitConverter.GetBytes(shortauth);
|
pkeyData = BitConverter.GetBytes(shortauth);
|
||||||
}
|
}
|
||||||
else if (version == PSVersion.Win7)
|
else if (version == PSVersion.Win7)
|
||||||
|
@ -165,7 +165,7 @@ namespace LibTSforge.SPP
|
|||||||
uint count;
|
uint count;
|
||||||
IntPtr pProductKeyIds;
|
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)
|
if (status != 0 || count == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user