Skip to content

Commit

Permalink
Filter out new APIs that can be resolved on 10.0.26100.0 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding committed Jul 21, 2024
1 parent 10fb7bc commit 6e4c857
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tests/Interop/Windows/ResolveDllImportTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,40 @@ private static void ProcessMethod(MethodInfo method, List<string> unresolved)
break;
}

case "AddPackageDependency2":
case "AllocConsoleWithOptions":
case "ColorProfileGetDeviceCapabilities":
case "FindPackageDependency":
case "GetFileInformationByName":
case "GetMemoryNumaClosestInitiatorNode":
case "GetMemoryNumaPerformanceInformation":
case "GetPackageDependencyInformation":
case "GetProcessesUsingPackageDependency":
case "GetResolvedPackageFullNameForPackageDependency2":
case "MFCreateDXGICrossAdapterBuffer":
case "MFGetDXGIDeviceManageMode":
case "ReleasePseudoConsole":
case "SHGetAssocKeys":
case "SymGetParentWindow":
case "TlsGetValue2":
case "TryCreatePackageDependency2":
case "WinHttpProtocolCompleteUpgrade":
case "WinHttpProtocolReceive"
case "WinHttpProtocolSend":
{
if (!OperatingSystem.IsWindowsVersionAtLeast(10, 0, 26100, 0))
{
// This isn't good practice, but current CI runs Windows Server and these APIs aren't available
// due to only being in a newer version of Windows.
Assert.Warn($"Warn: {exception.Message}");
}
else
{
goto default;
}
break;
}

case "DrawShadowText":
case "GetWindowSubclass":
case "HIMAGELIST_QueryInterface":
Expand Down

0 comments on commit 6e4c857

Please sign in to comment.