For Rayer - shared resources between DOS and WinXP (Announce)
> > You must distinguish between the VDD and other Win32 applications. The
> VDD
> > is loaded in the very same process as NTVDM.EXE, that is, it can access
> the
> > full DOS memory and a valid address in DOS is also valid for the VDD.
>
> Aha, understand. So I need to make VDD first (and probably last). You say
> it can access DOS memory in NTVDM and how about DPMI memory? As I
> understad you said there's some hack how to access also the DPMI memory. I
> downloaded hxdpmi but the asm is not very readable for me. I'd like to do
> all things in (gc)c - it shouldn't be problem.
the hack is for the "RegisterModule" call, because it uses some pointers which must fit into DS:SI and ES:DI - which might be a problem if your DOS app is 32bit and running in flat protected-mode.
Accessing DPMI memory is no problem at all, since such memory is a simple Win32 virtual memory block. Usually, inside the VDD, if you got addresses from the DOS app, you will translate them by a call of VdmMapFlat() - this call translates SEGMENT:OFFSET or SELECTOR:OFFSET into FLAT. Additionally, you can always inquire the VM's current state with function getMSW() - bit 0 will tell if it is in "real-mode" or protected-mode.
---
MS-DOS forever!
Complete thread:
- For Rayer - shared resources between DOS and WinXP - Laaca, 05.07.2008, 10:08
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- For Rayer - shared resources between DOS and WinXP - Japheth, 05.07.2008, 11:27
- For Rayer - shared resources between DOS and WinXP - RayeR, 06.07.2008, 13:26
- For Rayer - shared resources between DOS and WinXP - Japheth, 07.07.2008, 09:19
- For Rayer - shared resources between DOS and WinXP - RayeR, 08.07.2008, 14:02
- For Rayer - shared resources between DOS and WinXP - Japheth, 08.07.2008, 17:08
- For Rayer - shared resources between DOS and WinXP - RayeR, 11.07.2008, 02:53
- For Rayer - shared resources between DOS and WinXP - Japheth, 11.07.2008, 09:30
- For Rayer - shared resources between DOS and WinXP - RayeR, 11.07.2008, 11:18
- For Rayer - shared resources between DOS and WinXP - Japheth, 11.07.2008, 11:38
- For Rayer - shared resources between DOS and WinXP - RayeR, 11.07.2008, 14:12
- For Rayer - shared resources between DOS and WinXP - Japheth, 11.07.2008, 20:39
- For Rayer - shared resources between DOS and WinXP - RayeR, 16.07.2008, 15:51
- For Rayer - shared resources between DOS and WinXP - Japheth, 17.07.2008, 08:20
- For Rayer - shared resources between DOS and WinXP - RayeR, 17.07.2008, 12:25
- For Rayer - shared resources between DOS and WinXP - Japheth, 17.07.2008, 13:38
- For Rayer - shared resources between DOS and WinXP - RayeR, 17.07.2008, 14:05
- For Rayer - shared resources between DOS and WinXP - Rugxulo, 17.07.2008, 14:35
- For Rayer - shared resources between DOS and WinXP - RayeR, 17.07.2008, 18:55
- For Rayer - shared resources between DOS and WinXP - Rugxulo, 18.07.2008, 13:50
- For Rayer - shared resources between DOS and WinXP - RayeR, 22.07.2008, 10:24
- For Rayer - shared resources between DOS and WinXP - Rugxulo, 23.07.2008, 00:51
- For Rayer - shared resources between DOS and WinXP - RayeR, 23.07.2008, 16:56
- For Rayer - shared resources between DOS and WinXP - Rugxulo, 24.07.2008, 07:06
- For Rayer - shared resources between DOS and WinXP - RayeR, 23.07.2008, 16:56
- For Rayer - shared resources between DOS and WinXP - Rugxulo, 23.07.2008, 00:51
- For Rayer - shared resources between DOS and WinXP - RayeR, 22.07.2008, 10:24
- For Rayer - shared resources between DOS and WinXP - Rugxulo, 18.07.2008, 13:50
- For Rayer - shared resources between DOS and WinXP - RayeR, 17.07.2008, 18:55
- For Rayer - shared resources between DOS and WinXP - Rugxulo, 17.07.2008, 14:35
- For Rayer - shared resources between DOS and WinXP - RayeR, 17.07.2008, 14:05
- For Rayer - shared resources between DOS and WinXP - Japheth, 17.07.2008, 13:38
- For Rayer - shared resources between DOS and WinXP - RayeR, 17.07.2008, 12:25
- For Rayer - shared resources between DOS and WinXP - Japheth, 17.07.2008, 08:20
- For Rayer - shared resources between DOS and WinXP - RayeR, 16.07.2008, 15:51
- For Rayer - shared resources between DOS and WinXP - Japheth, 11.07.2008, 20:39
- For Rayer - shared resources between DOS and WinXP - RayeR, 11.07.2008, 14:12
- For Rayer - shared resources between DOS and WinXP - Japheth, 11.07.2008, 11:38
- For Rayer - shared resources between DOS and WinXP - RayeR, 11.07.2008, 11:18
- For Rayer - shared resources between DOS and WinXP - Japheth, 11.07.2008, 09:30
- For Rayer - shared resources between DOS and WinXP - Rugxulo, 23.07.2008, 01:00
- For Rayer - shared resources between DOS and WinXP - RayeR, 11.07.2008, 02:53
- For Rayer - shared resources between DOS and WinXP - Japheth, 08.07.2008, 17:08
- For Rayer - shared resources between DOS and WinXP - RayeR, 08.07.2008, 14:02
- For Rayer - shared resources between DOS and WinXP - Japheth, 07.07.2008, 09:19
- For Rayer - shared resources between DOS and WinXP - RayeR, 06.07.2008, 13:26
- For Rayer - shared resources between DOS and WinXP - RayeR, 11.07.2008, 23:04
- For Rayer - shared resources between DOS and WinXP - RayeR, 11.07.2008, 23:19
- For Rayer - shared resources between DOS and WinXP - ho1459, 13.07.2008, 08:40
- For Rayer - shared resources between DOS and WinXP - Japheth, 05.07.2008, 11:27
Mix view