Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

With DPMI into protect mode and back - EDIT: example (Developers)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 26.08.2010, 14:35

> > > The only way is just to terminate the application.
> > Correct.
>
> Not that much.

Well tell us. The way I've shown is to terminate the application - just with it being a fake application executed as child process.

> In DOS there is a (hacky, as usual) way to brew a separate process without
> brewing a file. In Windaube this is
> impossible
> to accomplish (except very aggressive kernel intrusion at least):
>
> > The name of the module to be executed. This module can be a
> > Windows-based application. It can be some other type of
> > module (for example, MS-DOS or OS/2

How bout you just execute your own executable? This is generally more dependable in Windows NT because you always get the path supplied - as opposed to DOS where that (A) depends on COMMAND.COM or any other parent process to set the right environment and (B) isn't done by all versions of COMMAND.COM even.

Besides, this particular issue doesn't exist for a Windows process and without a problem to work around, faking a child isn't useful anyway.

> > process in RM. Worked in NTVDM after
>
> :confused:

NTVDM has so many bugs, if it works within it will work with HDPMI too :-D

> BTW, I prefer INC CR0 from DPMI :-)

(1) There is no such instruction as INC CR0. You mean MOV EAX, CR0, INC EAX, MOV CR0, EAX. In other news: lol if u b trollin b trollin r8 dude

(2) I prefer DPMI. Although you don't have ring 0 access right away, it's just so much easier to set up. Especially because the host works out just about any memory setup for you, so I don't have to care about A20, XMS, XMS locking, Int15, VCPI or 400 other things you have to consider when switching to PM. Duh. (BTW for ring 0 access I prefer JLMs.)

---
l

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 245 users online (0 registered, 245 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum