home *** CD-ROM | disk | FTP | other *** search
/ Software Recommendations - 1998 Season 1 / DNBCD4.iso / share / DOS / ipxcopy / SRC.ZIP / SRC / DPMICALL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-09  |  790 b   |  46 lines

  1. /*
  2.  
  3.    DPMICALL.H
  4.  
  5. */
  6.  
  7. #ifndef _DPMICALL_H
  8. #define _DPMICALL_H
  9.  
  10. #include "ccommon.h"
  11. #ifdef C_DPMI
  12.  
  13. #include <stddef.h>
  14.  
  15. struct _rminfo_struct
  16. {
  17.    long edi;
  18.    long esi;
  19.    long ebp;
  20.     long reserved_by_system;
  21.    long ebx;
  22.    long edx;
  23.    long ecx;
  24.    long eax;
  25.     short flags;
  26.    short es,ds,fs,gs,ip,cs,sp,ss;
  27. };
  28. typedef struct _rminfo_struct rminfo_struct;
  29.  
  30. #ifdef __386__
  31. #define DPMI_FAR far
  32. #else
  33. #define DPMI_FAR
  34. #endif
  35.  
  36. void DPMI_FAR *dpmi_get_dos_ptr(short selector);
  37. void dpmi_copy_to_dos(short selector, void *ptr, size_t len);
  38. void dpmi_copy_from_dos(short selector, void *ptr, size_t len);
  39. int dpmi_alloc_dos_memory(int size, short *selector, short *segment );
  40. int dpmi_free_dos_memory(short selector);
  41. unsigned dpmi_simulate_rmi(int int_no, rminfo_struct *rmi);
  42.  
  43. #endif
  44.  
  45. #endif
  46.