summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWitherOrNot2025-03-03 01:04:15 +0000
committerWitherOrNot2025-03-03 01:04:15 +0000
commit1cf9823ad3defaf063f7306540e5f1bcbf9acbe7 (patch)
tree9e53a97bf2153f981e244196eb0625d3df9fed2e
parentf2ad15e5a25c9cc2cdf0d198927be0562f466156 (diff)
downloadTSforge-1cf9823ad3defaf063f7306540e5f1bcbf9acbe7.zip
remove debug prints, partially fix compatibility with vista rtm
-rw-r--r--LibTSforge/Activators/ZeroCID.cs6
-rw-r--r--LibTSforge/SPP/SLAPI.cs2
2 files changed, 1 insertions, 7 deletions
diff --git a/LibTSforge/Activators/ZeroCID.cs b/LibTSforge/Activators/ZeroCID.cs
index 6264f1d..255eea2 100644
--- a/LibTSforge/Activators/ZeroCID.cs
+++ b/LibTSforge/Activators/ZeroCID.cs
@@ -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)
diff --git a/LibTSforge/SPP/SLAPI.cs b/LibTSforge/SPP/SLAPI.cs
index 336d88f..c25fb03 100644
--- a/LibTSforge/SPP/SLAPI.cs
+++ b/LibTSforge/SPP/SLAPI.cs
@@ -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)
{