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
1.99k stars 84 forks source link

Why is `SHGetStockIconInfo` function is not supported by generator? #1159

Closed y0ung3r closed 3 months ago

y0ung3r commented 3 months ago

Hello!

Why is SHGetStockIconInfo function is not supported by generator?

NativeMethods content:

SHGetStockIconInfo 

Context

AArnott commented 3 months ago

Have you tried building and looking at the error list or output window for warnings? CsWin32 will report that the API is allowed, but not when targeting AnyCPU, because the declared APIs vary by architecture.