dotnet / pinvoke

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
MIT License
2.12k stars 222 forks source link

SHCore fixes/additions and add User32 UnregisterClass #459

Closed AArnott closed 4 years ago

AArnott commented 4 years ago

SHCore p/invoke work (to finish #449)

* Also fix capitalization of `GetDpiForShellUIComponent`.
* Add `GetScaleFactorForMonitor`
* Add `RegisterScaleChangeEvent`
* Add `UnregisterScaleChangeEvent`
* Remove `SetLastError` from SHCore functions

Add UnregisterClass method to close #451

AArnott commented 4 years ago

CC: @arlm, who contributed some of these APIs originally that I'm now touching up.