Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

For Rayer - shared resources between DOS and WinXP (Announce)

posted by Japheth Homepage, Germany (South), 17.07.2008, 13:38

> > Yes, of course. The LDT is not a part of your program.
>
> It's not, its pointed from GDT. But it's created by my program not the OS
> or is it DPMI call?

In case you asked whether the LDT is accessed with DPMI calls only then the answer is yes, in NTVDM there's no other possibility.

> But I'm still not sure about the prototype. VDM_MODE is defined as enum
> but what is the size of enum? As I looked for it's not a standard but
> dependent on compiler. Some uses 32bit int, some uses smallest possible
> type. But I need to know real size which ntvdm.exe takes to make proper
> import of this function.

A 32bit C compiler "should" always extend arguments with a magnitude < 32 bit (char, short, word, ...) to a dword, so this is no problem at all.

---
MS-DOS forever!

 

Complete thread:

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