[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DosRealIntr()                 Generate real mode interrupt from protected mode.
------------------------------------------------------------------------------

 Function : Generate a real mode interrupt from protected mode.

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

 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.

 Return   : Register values in regs structure.

 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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson