How do I use code to get Screen Resolution?

I think provided some code for this in the Solus Project Tutorials he’s been involved with.

Section: Solus Options Menu: Screen Resolutions