[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DosGetBIOSSeg()               Get selector for 1kb BIOS data area.
------------------------------------------------------------------------------

 Function : Get a selector for the 1kb BIOS data area.

 Syntax   : USHORT BLXAPI DosGetBIOSSeg(PSEL biossel);

 biossel    Pointer to an integer to receive the protected mode selector to
            the BIOS data area.

 Return   : Selector for the BIOS data area corresponding to real mode
            segment 0x0040.

 Far pointers to the BIOS data area should be created using the selector
 returned by this function. The selector returned by this function should
 NEVER be freed.

 Example:

    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    #include <blx286.h>
    void main (void)
    {
    SEL      biossel;
    /* Get selector for BIOS data area */
    if (DosGetBIOSSeg(&biossel) != 0)
       {
       printf("DosGetBIOSSeg() failed\n");
       exit(255);
       }
    printf("BIOS selector is : %04X\n",biossel);
    }

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