microsoft / CsWin32

A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.
MIT License
2.06k stars 87 forks source link

Support WinRT Interop APIs #141

Open mikebattista opened 3 years ago

mikebattista commented 3 years ago

See https://github.com/microsoft/win32metadata/issues/57 for details.

mikebattista commented 3 years ago

https://github.com/microsoft/win32metadata/issues/57#issuecomment-783769893 is the most relevant discussion.

Once we understand what is necessary to support these interfaces, we can evaluate the dev experience for requiring C#/WinRT to be referenced as well in order to use them.

AArnott commented 3 years ago

No idea why IUserConsentVerifierInterop wouldn't just work the way CsWin32 generates it if it's all just COM. But I have very little experience with WinRT and have not tried this myself.