During the creation of a DOS session, the virtual video device driver is called to perform certain tasks before the DOS session is permitted to execute.