Category : C Source Code
Archive   : IMDSRC78.ZIP
Filename : EMSLIBL.H

 
Output of file : EMSLIBL.H contained in archive : IMDSRC78.ZIP
/***************************************************************************
* EMSLIB.H *
* HEADER FOR EMSLIB *
* OS: DOS *
* VERSION: 2.12 *
* DATE: 05/01/91 *
* *
* Copyright (c) 1991 James W. Birdsall. All Rights Reserved. *
* *
***************************************************************************/

#define EMSLIB_H

/*
** system includes <>
*/

/*
** custom includes ""
*/

/*
** local #defines
*/

/* error returns */
#define EMMOOPS -1
#define NOEMM -2


/* EMM library errors */

#define EMM_BADVERS 0x40
#define EMM_BADOFFSET 0x41
#define EMM_NOFRAME 0x42


/* EMM driver errors */

#define EMM_SOFTERROR 0x80
#define EMM_HARDERROR 0x81
#define EMM_BUSY 0x82
#define EMM_BADHANDLE 0x83
#define EMM_UNIMP 0x84
#define EMM_NOFREEHAN 0x85
#define EMM_CONTEXTERR 0x86
#define EMM_WAYTOOBIG 0x87
#define EMM_TOOBIG 0x88
#define EMM_TOOSMALL 0x89
#define EMM_BADLOGPAGE 0x8A
#define EMM_BADFRAMENO 0x8B
#define EMM_HSTATESAVFULL 0x8C
#define EMM_MSTATESAVFULL 0x8D
#define EMM_MSTATERESTERR 0x8E
#define EMM_UNIMPSUB 0x8F
#define EMM_BADATTRIB 0x90
#define EMM_NOFEATURE 0x91
#define EMM_SRCOVERWRITE 0x92
#define EMM_BADLENGTH 0x93
#define EMM_CONEMSOVERLAP 0x94
#define EMM_OFFPAGE 0x95
#define EMM_TOOLONG 0x96
#define EMM_EMSEMSOVERLAP 0x97
#define EMM_LOST 0x98
#define EMM_UNUSED 0x99
#define EMM_BADALTREG 0x9A
#define EMM_NOFREEALTREG 0x9B
#define EMM_NOALTREG 0x9C
#define EMM_BADALTREG2 0x9D
#define EMM_NODEDDMA 0x9E
#define EMM_BADDEDDMA 0x9F
#define EMM_UNKNAME 0xA0
#define EMM_NAMETAKEN 0xA1
#define EMM_ADDRWRAP 0xA2
#define EMM_BADPTR 0xA3
#define EMM_FORBIDDENFUNC 0xA4


/*
** misc: copyright strings, version macros, etc.
*/

/*
** typedefs
*/

typedef struct a { /* return type from EMMgetframeaddr() */
unsigned int segaddr;
unsigned int frameno;
} frameinfo;


/*
** global variables
*/

extern unsigned char _EMMerror; /* EMS error variable */
extern unsigned char _EMMversion; /* EMS version, BCD */

extern char emslib_vers_vers[];
extern char emslib_vers_date[];
extern char emslib_vers_time[];


/*
** function prototypes
*/

extern int EMMlibinit(void);
extern int EMMgetversion(void);

extern unsigned long EMMcoreleft(void);
extern int EMMalloc(unsigned long bytes);
extern int EMMfree(int handle);

extern int EMMgetnumframe(void);
extern unsigned int EMMgetsinfraddr(int frame);
extern int EMMgetframeaddr(frameinfo *buffer);
extern int EMMmappage(int frameno, int handle, int logpage);
extern int EMMallocpages(int pages);

extern int EMMcopyto(unsigned long copylen, unsigned char far *source,
int handle, unsigned long foffset);
extern int EMMcopyfrom(unsigned long copylen, int handle,
unsigned long foffset, unsigned char far *dest);

extern int EMMsetname(int handle, char *name);
extern int EMMgetname(int handle, char *name);


  3 Responses to “Category : C Source Code
Archive   : IMDSRC78.ZIP
Filename : EMSLIBL.H

  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/