#include <GDIPlus.au3>
$File = "test.jpg"
_GDIPlus_Startup()
$hBitmap = _GDIPlus_BitmapCreateFromFile($File)
$hRez = _GDIPlus_ImageGetHorizontalResolution($hBitmap)
_GDIPlus_ImageDispose($hBitmap)
_WinAPI_DeleteObject($hBitmap)
_GDIPlus_Shutdown()
MsgBox('','',$hRez)