summaryrefslogtreecommitdiff
path: root/wpd/WpdWudfSampleDriver/Stdafxsrc.cpp
diff options
context:
space:
mode:
author5an7y <[email protected]>2026-06-22 15:52:55 -0700
committer5an7y <[email protected]>2026-06-22 15:52:55 -0700
commit6c6c308f1fe6ec1ce2ce7d0d7b3b455305a4a346 (patch)
treef7dbed4a544e222be3a7b442a101a51e5bd4cb59 /wpd/WpdWudfSampleDriver/Stdafxsrc.cpp
parenta659bfc6b48a908a0b244d32de575bcf30033e7b (diff)
Add -NtTargetVersion to build samples against older WDK library sets
Expose the WDK '_NT_TARGET_VERSION' property (the OS version of the libraries the driver links against) as -NtTargetVersion / WDS_NtTargetVersion. Unlike -TargetVersion (Target OS Version), this does not change the platform model, so Universal/Windows Driver samples keep building on Windows 10 while linking against an older library set. The parameter accepts the Windows build number (e.g. 10.0.22000), maps it to the NTDDI code from the WDK DriverGeneral.xml rule, and passes -p:_NT_TARGET_VERSION to msbuild (threaded through Build-SingleSample and the parallel runspace). It defaults to the latest (10.0.28000) and is surfaced in the build plan, summary, and HTML report title. Documented in Building-Locally.md. Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'wpd/WpdWudfSampleDriver/Stdafxsrc.cpp')
0 files changed, 0 insertions, 0 deletions