mirror of
https://github.com/VirtualDrivers/Virtual-Display-Driver.git
synced 2026-12-06 07:01:23 +09:00
Add IddCx 1.11 driver capabilities
This commit is contained in:
1 parent
4286463d30
commit
e1137ca41d
7 files changed
+471
-175
No files matched your search
@@ -42,8 +42,7 @@ permissions:
|
||||
jobs:
|
||||
build:
|
||||
if: inputs.control_ref == ''
|
||||
# The WDK driver build is validated against VS 2022; windows-latest is moving to VS 2026.
|
||||
runs-on: windows-2022
|
||||
runs-on: windows-2025-vs2026
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -59,12 +58,22 @@ jobs:
|
||||
- name: Setup MSBuild
|
||||
uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3.0.0
|
||||
|
||||
- name: Install Windows Driver Kit (IddCx headers)
|
||||
- name: Install the Windows 28000 SDK and WDK
|
||||
shell: pwsh
|
||||
run: |
|
||||
$ErrorActionPreference = "Stop"
|
||||
choco install windowsdriverkit11 -y --no-progress
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
$sdk = Join-Path $env:RUNNER_TEMP "winsdksetup-28000.exe"
|
||||
$wdk = Join-Path $env:RUNNER_TEMP "wdksetup-28000.exe"
|
||||
Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?linkid=2382519" -OutFile $sdk
|
||||
Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2388152" -OutFile $wdk
|
||||
foreach ($installer in @($sdk, $wdk)) {
|
||||
$signature = Get-AuthenticodeSignature -FilePath $installer
|
||||
if ($signature.Status -ne "Valid" -or $signature.SignerCertificate.Subject -notmatch "CN=Microsoft Corporation") {
|
||||
throw "Invalid Microsoft installer signature: $installer"
|
||||
}
|
||||
$process = Start-Process -FilePath $installer -ArgumentList @("/quiet", "/norestart") -Wait -PassThru
|
||||
if ($process.ExitCode -notin @(0, 3010)) { throw "Installer returned $($process.ExitCode): $installer" }
|
||||
}
|
||||
|
||||
- name: Detect matching Windows SDK and WDK headers
|
||||
shell: pwsh
|
||||
@@ -92,7 +101,7 @@ jobs:
|
||||
Where-Object { $_.Name -match '^\d+\.\d+\.\d+\.\d+$' } |
|
||||
Where-Object {
|
||||
(Test-Path (Join-Path $_.FullName "um\Windows.h")) -and
|
||||
(Test-Path (Join-Path $_.FullName "um\iddcx\1.10\IddCx.h"))
|
||||
(Test-Path (Join-Path $_.FullName "um\iddcx\1.11\IddCx.h"))
|
||||
} |
|
||||
Sort-Object { [version]$_.Name } -Descending |
|
||||
Select-Object -First 1
|
||||
|
||||
Reference in new issue
Block a user