diff options
| author | WitherOrNot | 2025-03-03 00:02:36 +0000 |
|---|---|---|
| committer | WitherOrNot | 2025-03-03 00:02:36 +0000 |
| commit | f2ad15e5a25c9cc2cdf0d198927be0562f466156 (patch) | |
| tree | fa2dda646e5cecf3e5dab1ebe3aa071a0545d0c1 /LibTSforge/Modifiers/RearmReset.cs | |
| parent | 6d759899d85939c95f2b97c8e041d7b4865208f9 (diff) | |
| download | TSforge-f2ad15e5a25c9cc2cdf0d198927be0562f466156.zip | |
fix vista kms4k, add reset support
Diffstat (limited to 'LibTSforge/Modifiers/RearmReset.cs')
| -rw-r--r-- | LibTSforge/Modifiers/RearmReset.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/LibTSforge/Modifiers/RearmReset.cs b/LibTSforge/Modifiers/RearmReset.cs index a17c005..4b611b6 100644 --- a/LibTSforge/Modifiers/RearmReset.cs +++ b/LibTSforge/Modifiers/RearmReset.cs @@ -2,6 +2,7 @@ namespace LibTSforge.Modifiers { using System; using System.Collections.Generic; + using System.Data; using System.Linq; using LibTSforge.PhysicalStore; using LibTSforge.SPP; @@ -18,7 +19,11 @@ namespace LibTSforge.Modifiers { List<PSBlock> blocks; - if (version == PSVersion.Win7) + if (version == PSVersion.Vista) + { + blocks = store.FindBlocks("740D70D8-6448-4b2f-9063-4A7A463600C5").ToList(); + } + else if (version == PSVersion.Win7) { blocks = store.FindBlocks(0xA0000).ToList(); } @@ -29,7 +34,11 @@ namespace LibTSforge.Modifiers foreach (PSBlock block in blocks) { - if (version == PSVersion.Win7) + if (version == PSVersion.Vista) + { + store.DeleteBlock(block.KeyAsStr, block.ValueAsStr); + } + else if (version == PSVersion.Win7) { store.SetBlock(block.KeyAsStr, block.ValueAsInt, new byte[8]); } |
