You don't need an API to get screen resolution. You can use ...

System.HorizontalResolution and
System.VerticalResolution