什么是intdos

核心提示intdos,功能是通用DOS接口 相当于int 21h,用 法是nt intdos(union REGS *inregs, union REGS *outregs)。中文名intdos外文名intdos功 能通用DOS接口函数名intdo

最佳答案:

intdos,功能是通用DOS接口 相当于int 21h,用 法是nt intdos(union REGS *inregs, union REGS *outregs)。

详情介绍

intdos,功能是通用DOS接口 相当于int 21h,用 法是nt intdos(union REGS *inregs, union REGS *outregs)。

中文名
intdos
外文名
intdos
功 能
通用DOS接口
函数名
intdos

程序例

#include

#include

int delete_file(char near *filename)

{

union REGS regs;

int ret;

regs.h.ah = 0x41;

regs.x.dx = (unsigned) filename;

ret = intdos(®s, ®s);

return(regs.x.cflag ? ret : 0);

}

int main(void)

{

int err;

err = delete_file("NOTEXIST.$$$");

if (!err)

printf("Able to delete NOTEXIST.$$$n");

else

printf("Not Able to delete NOTEXIST.$$$n");

return 0;

}

 
友情链接
鄂ICP备19019357号-22