/* XMS.H 代码编写: 王家宝 最后更新日期: 2000.04.01
用途: 操作XMS内存 要求: 系统提供HIMEM.SYS */
char *xms_2_basemem_buffer;/* divide the screen XMS_BLOCK_NUM block */ struct xms_move{ long byte_count; /* 每次传送多少个字节 */ unsigned source_handle; /* 源区句柄 */ long source_offset; /* 源区偏移量 */ unsigned destination_handle;/* 目的区句柄 */ long destination_offset; /* 目的区偏移量 */ };
int xms_init(); int end_xms(); int xms_malloc( unsigned memKB ); /*if error return 0,else return xms handle,memKB must calculate by KB*/ int xms_free(int xms_handle); /* if error return 0 */ void xms_interface(union REGS *,union REGS *); /* 如xms_interface调用失败可在其out.?.??中得到错误代码 */ int xms_movedata( struct xms_move *m ); 
|