Partial revert (re-add strict version checking for KPH on Win10), Add missing 32bit KPH offsets
@@ -160,9 +160,7 @@ NTSTATUS KphInitializeDynamicPackage(
Package->ResultingNtVersion = PHNT_REDSTONE5;
break;
default:
- Package->BuildNumber = USHRT_MAX;
- Package->ResultingNtVersion = PHNT_THRESHOLD;
- break;
+ return STATUS_NOT_SUPPORTED;
}
Package->StructData.EgeGuid = 0x18;
@@ -291,10 +289,16 @@ NTSTATUS KphInitializeDynamicPackage(
Package->BuildNumber = 16299;
Package->ResultingNtVersion = PHNT_REDSTONE3;
break;
- default:
- Package->BuildNumber = USHRT_MAX;
- Package->ResultingNtVersion = PHNT_THRESHOLD;
+ case 17134:
+ Package->BuildNumber = 17134;
+ Package->ResultingNtVersion = PHNT_REDSTONE4;
break;
+ case 17763:
+ Package->BuildNumber = 17763;
+ Package->ResultingNtVersion = PHNT_REDSTONE5;
+ break;
+ default:
+ return STATUS_NOT_SUPPORTED;
}
Package->StructData.EgeGuid = 0xc;
