Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>_ovrinitems() initialize expanded memory for overlays</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _OvrInitEms()           Initialize Expanded Memory for Overlays

 #include   <dos.h>

 void       int _OvrInitEms(emsHandle, Page1, Numpages);
 unsigned emsHandle;    0 or valid EMS handle
 unsigned Page1;        First page
 unsigned Numpages;     Limit of available pages

        The _OvrInitEms() function initializes expanded memory for use by
        C++'s overlay manager. If emsHandle is zero, the overlay manager
        allocates EMS pages; if emsHandle is not zero, it should be a valid
        EMS handle (and you can specify Page1).

       Returns:     0 for success.

   Portability:     Unique to 8086 family of processors.

   -------------------------------- Example ---------------------------------
        This example asks the overlay manager to check for expanded
        memory and lets it use 32 pages (512K).

        #include <dos.h>

        int main(void)
        {
           _OvrInitEms (0, 0, 32);
           return 0;
        }


See Also: _OvrInitExt()

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