We are now ready to put the VMB session as an object on the OS/2 Version 2.0 Workplace Shell desktop.
See the example as shown in Figure "The Program Page of the Settings Notebook for a VMB".
The Session notebook allows the user to specify the session type and DOS Settings for the VMB session.
The difference between a VMB session and a "normal" VDM is that the DOS Settings value of DOS_STARTUP_DRIVE is set. This setting determines the location of the DOS kernel to be booted. By default, MVDM's DOS Emulation is loaded. However, the user may specify a location from which to load DOS, in which case the version of DOS residing at that location is loaded.
Figure "DOS Settings - DOS_STARTUP_DRIVE"
Example values for DOS startup drive are:
DOS Start up setting
a:
Meaning
Other DOS Settings
DOS settings which control the VDM hardware environment are applicable to the VMB session and operate in the same way as for a DOS Emulation windowed or full-screen session. Those which modify the virtual DOS environment are ignored; the equivalent settings are instead determined by the CONFIG.SYS file of the booted DOS kernel. Ignored settings include:
The FCB limit is the lesser of either the booted DOS, or OS/2 Version 2.0 CONFIG.SYS value. The VMB session will by default have 640KB of real memory, mou se support, 2MB Expanded (EMS) memory, 2MB DPMI, and 2MB XMS memory.
Booting from an OS/2 V2.0 Program
By using DosStartSession it is possible to start a VMB session from an OS/2 V2.0 program. For more details see the following sample which shows how to boot from the disk drive A:. Of course, by changing startd.Environment, this sample can also be used to start a VMB from another hard disk partition or a boot image file from your hard disk.
Figure "VMB from an OS/2 2.0 Program"