Some programs - especially games - require that your system be set to a particular color depth and resolution. Often such special settings are different from your usual mode, though.
To a programmer, an operating system is defined by its API.