Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Blinker 5.10 Online Reference - <b> dosgetbiosseg()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DosGetBIOSSeg()
------------------------------------------------------------------------------
 Purpose:
 Get a selector for the 1 Kb BIOS data area.

 Syntax:
 USHORT BLXAPI DosGetBIOSSeg(PSEL biossel);

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

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

 Description:
 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);                                
 }                                                                           

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson