I have a WPF application using Aero Glass. When using the application under a 120dpi setting the margins within my UI are not matching up to the margins I pass over to the DwmExtendFrameIntoClientArea API call.
How would I get the systems DPI setting within .NET 3.0 so that I can correct the margin that I am passing to the DwmExtendFrameIntoClientArea API call?
Essentially, the WPF UI uses device-independent units whereas the DwmExtendFrameIntoClientArea API call uses pixels.
Thanks