winforms
winforms copied to clipboard
Should use GetDllVersion for seeing what common controls is available
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