Closed DerMagereStudent closed 9 months ago
I can't find documentation for IPolicyConfig
. Where do you see these APIs that you expect CsWin32 to be able to generate? They aren't in the metadata, so if they are indeed in the win32 SDK, we can move this issue to the win32metadata repo to get it added.
I'm currently rewriting an application I wrote back in 2021. So I can't recall where I saw these APIs. But I can tell you the COM CLSIDs are:
IPolicyConfig: F8679F50-850A-41CF-9C72-430F290290C8
PolicyConfigClient: 870AF99C-171D-4F9E-AF0D-E63DF40C2BC9
I thought they are part of the Windows Core Audio APIs
If you can provide a doc link or the header file they come from, I'll forward to the win32metadata repo for consideration. But without that, we may not be able to do anything.
We don't generated undocumented APIs. Looks like you'll have to keep your own declarations for them.
I want to set the default audio endpoint. I need both IPolicyConfig and PolicyConfigClient. I added both into the NativeMethods.txt along with some other classes and interfaces:
Actual behavior
Both IPolicyConfig and PolicyConfigClient are not created
Expected behavior
I would expect them to be created and usable.
Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present): no jsonAny of your own code that should be shared? Not needed the issue is about the source generator only
Context
0.3.49-beta
] Dont know why 0.4.422-beta is the example. Mine is the highest version there is on nugetWindows Kits\10\UnionMetadata\10.0.20348.0\Windows.winmd
if thats what is meantLangVersion
10