DECLARE INTEGER GetDpiForWindow IN user32.DLL LONG HWND DECLARE INTEGER GetDesktopWindow IN user32.DLL SET DECIMALS TO 5 ? GetDpiForWindow(_SCREEN.HWND),GetDpiForWindow(GetDesktopWindow()) ?GetDpiForWindow(_SCREEN.HWND)/GetDpiForWindow(GetDesktopWindow())output is 96 , 96 and scaling is 1. How to get expected value 1.25 as shown in windows ?