Category : Files from Magazines
Archive   : DDJ9210.ZIP
Filename : DPMI.ASC

 
Output of file : DPMI.ASC contained in archive : DDJ9210.ZIP
_DPMI MEETS C++_
by Frederick Hewett

Example 1

class DPMIhost {
public:
DPMIhost(void);
DPMIerr getStatus(void);
boolean enterProtectedMode(uChar bitness);
void getVersion(uChar *major, uChar *minor);
uChar getSelectorDelta(void);
}




Example 2

class Block {
public:
Block(uLong size);
~Block(void);
boolean setSize(uLong);
uLong blockHandle(void);
uLong blockSize(void);
uLong blockBase(void);
protected:
uLong handle;
uLong base;
uLong size;
}




Example 3

class AbstractSegment
{
public:
virtual uLong segmentSize(void);
virtual uLong segmentBase(void);
virtual booelan queryProp(SegmentProp_t);
virtual operator+(SegmentProp_t)=0;
virtual operator-(SegmentProp_t)=0;
virtual boolean resize(uShort)=0;
virtual boolean move(uLong)=0;
void far *ptrTo(void);
protected:
selector_t selector;
}




Example 4

typedef enum SegmentProperty {
present,
executable,
readable,
writable,
big,
expandDown
} SegmentProp_t;




Example 5

if (myDataSeg + executable)
{
// operation succeeded
}
else
{
// operation failed
}



  3 Responses to “Category : Files from Magazines
Archive   : DDJ9210.ZIP
Filename : DPMI.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/