Functions are provided to both determine and change the current adapter and video mode.
More:
Determining the Current Adapter
Determining the Current Video Mode
Switching Modes During Run-Time