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> dosrealintr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DosRealIntr()
------------------------------------------------------------------------------
 Purpose:
 Generate a real mode interrupt from protected mode.

 Syntax:
 USHORT _far _cdecl DosRealIntr(USHORT intno,
                                PREGS regs,
                                ULONG reserved,
                                short wordcount,
                                ...);

 Parameters:
 intno      Real mode interrupt number.
 regs       Pointer to REGS16 structure containing the register values to
            be passed to and returned from real mode.
 reserved   Reserved. Must be zero.
 wordcount  Count of word arguments to be passed to the interrupt handler
            on the stack. Zero indicates none and a negative count causes
            them to be passed using the Pascal calling convention.
 ...        Arguments to interrupt handler if wordcount <> 0.

 Returns:
 Register values in regs structure.

 Description:
 DosRealIntr() is used to issue a real mode interrupt from protected mode.
 The Blinker extender provides automatic transparent DOS and BIOS interrupt
 support for most of the common interrupts, so it is only necessary to use
 this function for non-standard interrupts.Examples of these include Network
 APIs, undocumented DOS functions and real mode TSRs.

 Example:
 #include <stdio.h>                                                          
 #include <blx286.h>                                                         
                                                                             
 void main (void)     /* Note: This example could also be */                 
                   /* done directly using INT                                
 10h */                                                                      
 {                                                                           
 REGS16 regs;                                                                
                                                                             
 regs.ax = 0x0f00;                                                           
 if (DosRealIntr (0x10h, &regs, 0L, 0) == 0)                                 
    {                                                                        
    printf ("Current video mode : %02Xh\n", regs.ax && 0xff);                
    printf ("Current video cols : %02Xh\n", regs.ax >> 8);                   
    }                                                                        
 else                                                                        
    printf ("Get video mode call failed\n");                                 
 }                                                                           

See Also: DosRealFarCall()

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