From 1cf9823ad3defaf063f7306540e5f1bcbf9acbe7 Mon Sep 17 00:00:00 2001 From: WitherOrNot Date: Sun, 2 Mar 2025 20:04:15 -0500 Subject: [PATCH] remove debug prints, partially fix compatibility with vista rtm --- LibTSforge/Activators/ZeroCID.cs | 6 ------ LibTSforge/SPP/SLAPI.cs | 2 +- 2 files changed, 1 insertion(+), 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) {