From 02af7684267a694a0a2625812e0d30bab4e87974 Mon Sep 17 00:00:00 2001 From: Gauri Thirumandas <48160139+Gshri1021@users.noreply.github.com> Date: Thu, 31 Jul 2025 13:45:16 -0700 Subject: Fixing C5286 in serial/serial /ioctl.c Co-authored-by: Gauri Thirumandas --- serial/serial/ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- cgit v1.3.1 From 5c981553b7e6499269ec8d9ce7c1a23185ef1fb5 Mon Sep 17 00:00:00 2001 From: 5an7y Date: Mon, 11 Aug 2025 10:02:39 -0700 Subject: WDK VS component naming convention --- Build-SampleSet.ps1 | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 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" -- cgit v1.3.1 From 920da97b3db747167926e1ec8977515001f6a567 Mon Sep 17 00:00:00 2001 From: 5an7y Date: Mon, 15 Sep 2025 09:46:16 -0700 Subject: Update wdk 6584 --- Directory.Build.props | 10 +++++----- packages.config | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) 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 @@ - - - - - + + + + + diff --git a/packages.config b/packages.config index 5f93b2bf..005aead0 100644 --- a/packages.config +++ b/packages.config @@ -1,8 +1,8 @@  - - - - - + + + + + -- cgit v1.3.1