Skip to content

Commit

Permalink
Add SupportedOSPlatformAttribute to CreatePresentationFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbrew committed Dec 21, 2024
1 parent add1bfe commit b2de6fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generation/Windows/um/Presentation/generate.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ TerraFX.Interop.Windows
C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/Presentation.h
--with-librarypath
CreatePresentationFactory=dcomp
--with-attribute
CreatePresentationFactory=SupportedOSPlatform("windows10.0.22000.0")
2 changes: 2 additions & 0 deletions sources/Interop/Windows/Windows/um/Presentation/Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@

using System;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;

namespace TerraFX.Interop.Windows;

public static unsafe partial class Windows
{
/// <include file='Windows.xml' path='doc/member[@name="Windows.CreatePresentationFactory"]/*' />
[DllImport("dcomp", ExactSpelling = true)]
[SupportedOSPlatform("windows10.0.22000.0")]
public static extern HRESULT CreatePresentationFactory(IUnknown* d3dDevice, [NativeTypeName("const IID &")] Guid* riid, void** presentationFactory);
}

0 comments on commit b2de6fa

Please sign in to comment.