Retrieves the actual number of horizontal dots per inch (DPI) of the system's screen.
HRESULT IHTMLScreen2::get_deviceXDPI(long *p);
- Pointer to a variable of type long that receives the DPI.
Returns S_OK if successful, or an error value otherwise.
On most systems, there is no difference between horizontal and vertical DPI.
IHTMLScreen2::deviceXDPI was introduced in Microsoft Internet Explorer 6
For information about how Internet Explorer 6 and later can adjust the scale of the display on screens with higher-than-normal DPI, see Adjusting Scale for Higher DPI Screens.