GetDpiForWindow function (winuser.h) - Win32 apps
Returns the dots per inch (dpi) value for the specified window.