All DPMI applications begin execution in real mode. An application must run first as a real mode DOS program, but can then switch to protected mode by making a call to DPMI (or to a DOS extender). Once in protected mode, all INT 31h calls supported by DPMI may be issued by the application or its associated DOS extender functions.
A DOS extender and its application under DPMI are loaded and initialized as described below. The DOS extender:
If no DPMI server is present, the DOS extender checks for the existence of a VCPI server or XMS device driver before assuming total control of the CPU's execution mode, privileged control registers, and memory management hardware.
The DOS extender can mark pageable memory it uses below 640KB so as to reduce the demand for physical memory.
Control is then passed to the application.