Sub GetDesktopDisplayMode(index, ByRef w, ByRef h, ByRef freq)

Gets the resolution and refresh rate of a display