include/df/dpmi.hpp

00001 /*
00002 
00003 class : DPMI (Dos Protected Mode Interface)
00004 
00005 usage : For DOS32 apps only. (see /examples/ex18)
00006 
00007 */
00008 
00009 #pragma pack(push, 1)
00010 struct DPMIRegisters {
00011   uint32 edi, esi, ebp, res1, ebx, edx, ecx, eax;
00012   uint16 flgs, es, ds, fs, gs, ip, cs, sp, ss;
00013 };
00014 #pragma pack(pop)
00015 //clear SS:SP to allow host to provide one
00016 //CS:IP ignored
00017 
00018 class DPMI : public SystemCode {
00019   public:
00020     static BOOL LowMemAlloc(uint16 paragraphs, uint16 *selector, uint16 *segment);
00021     static BOOL LowMemFree(uint16 selector);
00022     static BOOL Interrupt(uint8 intnum, DPMIRegisters *regs);
00023 };
00024 

Generated on Mon Mar 5 09:49:13 2007 for DigiForce by  doxygen 1.4.7