1.

Solve : how to develop a protected mode TSR under DPMI 0.9??

Answer»

hello everyone ,
       I want to develop a protected mode TSR under DPMI 0.9 using BC4.5 . In DPMI1.0 there are functions 0c00 and 0c01 that supported a program to stay resident .But in DPMI 0.9 these functions didn't exist ,so I want to know how to develop it .If you know ,please tell me.If you have some examples ,please paste them or  you can mail it to me .My e-mail address is [email protected] everyone.Welcome to CH forums
The moderator will remove your e-mail.
You are talking about:
Quote

DOS protected mode interface
Abbreviated as DPMI, DOS Protected Mode Interface is a memory mode allowing DOS programs to operate in protected mode allowing DOS applications to support multitasking and use portions beyond the 640KB limit.
Also see: EMS, Memory definitions, Protected mode
Sorry I can not help you. Why can you not use the 1.0 version?
DPMI 1.0 Programming API Specfication
http://www.delorie.com/djgpp/doc/dpmi/
I wish I could use DPMI 1.0,but there is some limit.I hate the limit.But thank you also the same.who can help me!!!!!If anybody wants to know more about this:
http://en.wikipedia.org/wiki/DOS_Protected_Mode_Interface
DPMI still works. But  most modern programing with use DiretcX or something like that.Finally I found a way,but I can't quite UNDERSTAND it.First you should install the interrupt using function 0204h of int 31h,then keep the programe to stay resident using function 31h of int 21h.But I didn't know how to decide the size.The return code has been MADE to be zero.
My question is that my TSR runs under protected mode .But the int 21h runs under real mode,can it read or wirte the memory of protected mode?Wish I knew the ANSWER. What little I have read seems to say you don't worry about it, that is what DPMI does.
Here is a site that has a good but brief collection of tools for hard core low-level programming. The article does not directly cover you question, but maybe it sheds some LIGHT on what you can do with a DPMI program.

http://www.thefreecountry.com/programming/dosextenders.shtml

Scroll down the PAGE at take a look at CSDPMI DPMI Host.


Discussion

No Comment Found