diff options
| author | Jose Santiago Vales Mena <[email protected]> | 2025-09-29 14:21:13 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-29 14:21:13 -0700 |
| commit | 9014cc397cb44ec5530bd27dec14d7c2e490498b (patch) | |
| tree | afc30f9c8cc92fa1705b936be35148e26651f8bf | |
| parent | a0d6b25283bcde2dd8be1ccf40ccec9040d79676 (diff) | |
| parent | 9ca0b0d395a55740b261c834df79eb9344e5bc56 (diff) | |
Merge branch 'microsoft:main' into main
| -rw-r--r-- | Build-SampleSet.ps1 | 43 | ||||
| -rw-r--r-- | Directory.Build.props | 10 | ||||
| -rw-r--r-- | packages.config | 10 | ||||
| -rw-r--r-- | serial/serial/ioctl.c | 4 |
4 files changed, 34 insertions, 33 deletions
diff --git a/Build-SampleSet.ps1 b/Build-SampleSet.ps1 index 42ca7b9a..8638d517 100644 --- a/Build-SampleSet.ps1 +++ b/Build-SampleSet.ps1 @@ -103,19 +103,20 @@ else { Write-Error "Could not determine build environment." exit 1 } -# -# Be lenient with EWDK builds that do not include the package information +# Determine WDK Visual Studio Component version +# +# Be lenient with EWDK builds that do not include the component information if ($build_environment -match '^EWDK') { - $wdk_extension_ver = "(package is not included for EWDK builds)" + $wdk_vs_component_ver = "(WDK Visual Studio Component Version is not included for EWDK builds)" } else { # Get the WDK extension version from installed packages - $wdk_extension_ver = Get-ChildItem "${env:ProgramData}\Microsoft\VisualStudio\Packages\Microsoft.Windows.DriverKit,version=*" -ErrorAction SilentlyContinue - if (-not $wdk_extension_ver) { - Write-Error "No version of the WDK Visual Studio Extension could be found. The WDK Extension is not installed." + $wdk_vs_component_ver = Get-ChildItem "${env:ProgramData}\Microsoft\VisualStudio\Packages\Microsoft.Windows.DriverKit,version=*" -ErrorAction SilentlyContinue + if (-not $wdk_vs_component_ver) { + Write-Error "WDK Visual Studio Component version not found. Please ensure the WDK Component is installed." exit 1 } - $wdk_extension_ver = [regex]::Match($wdk_extension_ver.Name, '(\d+\.){3}\d+').Value + $wdk_vs_component_ver = [regex]::Match($wdk_vs_component_ver.Name, '(\d+\.){3}\d+').Value } # @@ -180,22 +181,22 @@ $jresult = @{ $SolutionsTotal = $sampleSet.Count * $Configurations.Count * $Platforms.Count -Write-Output "WDK Build Environment: $build_environment" -Write-Output "WDK Build Number: $build_number" +Write-Output "WDK Build Environment: $build_environment" +Write-Output "WDK Build Number: $build_number" if (($build_environment -eq "GitHub") -or ($build_environment -eq "NuGet")) { -Write-Output "WDK Nuget Version: $nuget_package_version" +Write-Output "WDK Nuget Version: $nuget_package_version" } -Write-Output "WDK Extension Version: $wdk_extension_ver" -Write-Output "Samples: $($sampleSet.Count)" -Write-Output "Configurations: $($Configurations.Count) ($Configurations)" -Write-Output "Platforms: $($Platforms.Count) ($Platforms)" -Write-Output "InfVerif_AdditionalOptions: $InfVerif_AdditionalOptions" -Write-Output "Combinations: $SolutionsTotal" -Write-Output "LogicalProcessors: $LogicalProcessors" -Write-Output "ThrottleFactor: $ThrottleFactor" -Write-Output "ThrottleLimit: $ThrottleLimit" -Write-Output "WDS_WipeOutputs: $env:WDS_WipeOutputs" -Write-Output "Disk Remaining (GB): $(((Get-Volume ((Get-Item ".").PSDrive.Name)).SizeRemaining) / 1GB)" +Write-Output "WDK Visual Studio Component Version: $wdk_vs_component_ver" +Write-Output "Samples: $($sampleSet.Count)" +Write-Output "Configurations: $($Configurations.Count) ($Configurations)" +Write-Output "Platforms: $($Platforms.Count) ($Platforms)" +Write-Output "InfVerif_AdditionalOptions: $InfVerif_AdditionalOptions" +Write-Output "Combinations: $SolutionsTotal" +Write-Output "LogicalProcessors: $LogicalProcessors" +Write-Output "ThrottleFactor: $ThrottleFactor" +Write-Output "ThrottleLimit: $ThrottleLimit" +Write-Output "WDS_WipeOutputs: $env:WDS_WipeOutputs" +Write-Output "Disk Remaining (GB): $(((Get-Volume ((Get-Item ".").PSDrive.Name)).SizeRemaining) / 1GB)" Write-Output "" Write-Output "T: Combinations" Write-Output "B: Built" diff --git a/Directory.Build.props b/Directory.Build.props index 287a2500..e5137bea 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ <Project> -<Import Project="packages\Microsoft.Windows.WDK.x64.10.0.26100.4204\build\native\Microsoft.Windows.WDK.x64.props" Condition="Exists('packages\Microsoft.Windows.WDK.x64.10.0.26100.4204\build\native\Microsoft.Windows.WDK.x64.props') and '$(Platform)' == 'x64'"/> -<Import Project="packages\Microsoft.Windows.WDK.arm64.10.0.26100.4204\build\native\Microsoft.Windows.WDK.arm64.props" Condition="Exists('packages\Microsoft.Windows.WDK.arm64.10.0.26100.4204\build\native\Microsoft.Windows.WDK.arm64.props') and '$(Platform)' == 'ARM64'"/> -<Import Project="packages\Microsoft.Windows.SDK.CPP.x64.10.0.26100.4204\build\native\Microsoft.Windows.SDK.cpp.x64.props" Condition="Exists('packages\Microsoft.Windows.SDK.CPP.x64.10.0.26100.4204\build\native\Microsoft.Windows.SDK.cpp.x64.props') and '$(Platform)' == 'x64'"/> -<Import Project="packages\Microsoft.Windows.SDK.CPP.arm64.10.0.26100.4204\build\native\Microsoft.Windows.SDK.cpp.arm64.props" Condition="Exists('packages\Microsoft.Windows.SDK.CPP.arm64.10.0.26100.4204\build\native\Microsoft.Windows.SDK.cpp.arm64.props') and '$(Platform)' == 'ARM64'"/> -<Import Project="packages\Microsoft.Windows.SDK.CPP.10.0.26100.4204\build\native\Microsoft.Windows.SDK.cpp.props" Condition="Exists('packages\Microsoft.Windows.SDK.CPP.10.0.26100.4204\build\native\Microsoft.Windows.SDK.cpp.props')"/> +<Import Project="packages\Microsoft.Windows.WDK.x64.10.0.26100.6584\build\native\Microsoft.Windows.WDK.x64.props" Condition="Exists('packages\Microsoft.Windows.WDK.x64.10.0.26100.6584\build\native\Microsoft.Windows.WDK.x64.props') and '$(Platform)' == 'x64'"/> +<Import Project="packages\Microsoft.Windows.WDK.arm64.10.0.26100.6584\build\native\Microsoft.Windows.WDK.arm64.props" Condition="Exists('packages\Microsoft.Windows.WDK.arm64.10.0.26100.6584\build\native\Microsoft.Windows.WDK.arm64.props') and '$(Platform)' == 'ARM64'"/> +<Import Project="packages\Microsoft.Windows.SDK.CPP.x64.10.0.26100.6584\build\native\Microsoft.Windows.SDK.cpp.x64.props" Condition="Exists('packages\Microsoft.Windows.SDK.CPP.x64.10.0.26100.6584\build\native\Microsoft.Windows.SDK.cpp.x64.props') and '$(Platform)' == 'x64'"/> +<Import Project="packages\Microsoft.Windows.SDK.CPP.arm64.10.0.26100.6584\build\native\Microsoft.Windows.SDK.cpp.arm64.props" Condition="Exists('packages\Microsoft.Windows.SDK.CPP.arm64.10.0.26100.6584\build\native\Microsoft.Windows.SDK.cpp.arm64.props') and '$(Platform)' == 'ARM64'"/> +<Import Project="packages\Microsoft.Windows.SDK.CPP.10.0.26100.6584\build\native\Microsoft.Windows.SDK.cpp.props" Condition="Exists('packages\Microsoft.Windows.SDK.CPP.10.0.26100.6584\build\native\Microsoft.Windows.SDK.cpp.props')"/> </Project> diff --git a/packages.config b/packages.config index 5f93b2bf..005aead0 100644 --- a/packages.config +++ b/packages.config @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <packages> - <package id="Microsoft.Windows.SDK.CPP" version="10.0.26100.4204" targetFramework="native" /> - <package id="Microsoft.Windows.SDK.CPP.x64" version="10.0.26100.4204" targetFramework="native" /> - <package id="Microsoft.Windows.SDK.CPP.arm64" version="10.0.26100.4204" targetFramework="native" /> - <package id="Microsoft.Windows.WDK.x64" version="10.0.26100.4204" targetFramework="native" /> - <package id="Microsoft.Windows.WDK.arm64" version="10.0.26100.4204" targetFramework="native" /> + <package id="Microsoft.Windows.SDK.CPP" version="10.0.26100.6584" targetFramework="native" /> + <package id="Microsoft.Windows.SDK.CPP.x64" version="10.0.26100.6584" targetFramework="native" /> + <package id="Microsoft.Windows.SDK.CPP.arm64" version="10.0.26100.6584" targetFramework="native" /> + <package id="Microsoft.Windows.WDK.x64" version="10.0.26100.6584" targetFramework="native" /> + <package id="Microsoft.Windows.WDK.arm64" version="10.0.26100.6584" targetFramework="native" /> </packages> diff --git a/serial/serial/ioctl.c b/serial/serial/ioctl.c index 192f3955..c571334b 100644 --- a/serial/serial/ioctl.c +++ b/serial/serial/ioctl.c @@ -2032,7 +2032,7 @@ Return Value: // // Override the default settings from allow user control to do not allow. // - wakeSettings.UserControlOfWakeSettings = IdleDoNotAllowUserControl; + wakeSettings.UserControlOfWakeSettings = WakeDoNotAllowUserControl; status = WdfDeviceAssignSxWakeSettings(pDevExt->WdfDevice, &wakeSettings); if (!NT_SUCCESS(status)) { SerialDbgPrintEx(TRACE_LEVEL_ERROR, DBG_PNP, "WdfDeviceAssignSxWakeSettings failed %x \n", status); @@ -2050,7 +2050,7 @@ Return Value: // Override the default settings. // wakeSettings.Enabled = WdfFalse; // Disables wait-wake - wakeSettings.UserControlOfWakeSettings = IdleDoNotAllowUserControl; + wakeSettings.UserControlOfWakeSettings = WakeDoNotAllowUserControl; status = WdfDeviceAssignSxWakeSettings(pDevExt->WdfDevice, &wakeSettings); if (!NT_SUCCESS(status)) { SerialDbgPrintEx(TRACE_LEVEL_ERROR, DBG_PNP, "WdfDeviceAssignSxWakeSettings failed %x \n", status); |
