<feed xmlns='http://www.w3.org/2005/Atom'>
<title>windows-driver-samples.git/Get-NtTargetVersions.ps1, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/windows-driver-samples.git/atom/Get-NtTargetVersions.ps1?h=main</id>
<link rel='self' href='http://cgit.235523.xyz/windows-driver-samples.git/atom/Get-NtTargetVersions.ps1?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/windows-driver-samples.git/'/>
<updated>2026-06-23T17:38:40Z</updated>
<entry>
<title>Auto-discover _NT_TARGET_VERSION; remove the TargetVersion axis</title>
<updated>2026-06-23T17:38:40Z</updated>
<author>
<name>5an7y</name>
<email>jose.santiago7@hotmail.com</email>
</author>
<published>2026-06-23T17:38:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/windows-driver-samples.git/commit/?id=ceceab78412feefd2f343a0e3bc07f1262665b62'/>
<id>urn:sha1:ceceab78412feefd2f343a0e3bc07f1262665b62</id>
<content type='text'>
- Remove the -TargetVersion parameter and all its plumbing from Build-Samples.ps1 (restoring
  the original hard-coded -p:TargetVersion=Windows10), and drop the TargetVersions column from
  exclusions.csv and Import-SampleExclusions. Only _NT_TARGET_VERSION remains exposed.
- Add Get-NtTargetVersions.ps1, which auto-discovers the valid _NT_TARGET_VERSION values (and
  their NTDDI codes) by parsing the active WDK's DriverGeneral.xml rule. Build-Samples.ps1 uses
  it to validate -NtTargetVersion, default to the latest, and map to the msbuild code, so a new
  WDK version needs no script change (accepts '10.0.&lt;build&gt;' or the short '&lt;build&gt;' tag).
- CI: ci.yml and ci-pr.yml gain a 'discover' job that emits the newest-N versions as JSON; the
  build matrix consumes it via fromJSON, so there is no hand-maintained version list anywhere.
  Build-ChangedSamples.ps1 treats Get-NtTargetVersions.ps1 as a full-build trigger.
- Docs updated accordingly.

Co-authored-by: Copilot &lt;223556219+Copilot@users.noreply.github.com&gt;
</content>
</entry>
</feed>
