winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Should use GetDllVersion for seeing what common controls is available

Open JeremyKuhne opened this issue 6 years ago • 0 comments

In [Application.InitializeComCtlSupportsVisualStyles()] we're scraping for known exports to determine the version of common controls that is available. That's error prone and why they've added DllGetVersion to the various shell dlls. There shouldn't be a "binding" issue as called out in the code.

Feel free to use my implementation as a reference, I don't need credited. https://github.com/JeremyKuhne/WInterop/blob/master/src/WInterop.Desktop/Windows/Windows.cs#L712

JeremyKuhne avatar Jul 24 '19 21:07 JeremyKuhne