Hi,
According to
http://technet.microsoft.com/en-us/library/dn528846.aspx[
^]
This API will always return 96 unless the tool that calls it is registered as DPI-aware.
You should mark your application DPI-aware.
you have 2 options to do so:
1.
add this xml to to your manifest file:
<asmv3:application xmlns:asmv3="#unknown">
<asmv3:windowssettings xmlns=""http://schemas.microsoft.com/SMI/2005/WindowsSettings"">
<dpiaware>Per monitor</dpiaware>
</asmv3:windowssettings>
</asmv3:application>
2.
call `SetProcessDPIAware` function on your application.
information:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633543%28v=vs.85%29.aspx[
^]
hope it help...
:)