[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DosGetHostMode()              Get current DOS extender host mode (DPMI, VCPI, XMS).
------------------------------------------------------------------------------

 Function : Get the current DOS extender host mode (DPMI, VCPI, XMS).

 Syntax   : USHORT BLXAPI DosGetHostMode(BYTE *hostmode);

 hostmode   Pointer to a byte to receive the host mode.

 Return   : Host mode indicator byte.

 This function is used to determine under which host mode the DOS extended
 program is running.

 Example:

    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    #include <blx286.h>
    void main (void)
    {
    BYTE        hostmode ;
    if(DosGetHostMode(&hostmode) == 0 )
       {
       printf("The host mode is ");
       switch(hostmode)
          {
          case BliHostDPMI :
             printf("DPMI");
             break;
          case BliHostVCPI :
             printf("VCPI");
             break;
          case BliHostXMS :
             printf("XMS");
             break;
          default :
             printf("Unknown!!");
          }
       }
    }

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson