Laaca![]() Czech republic, 05.07.2008, 10:08 |
For Rayer - shared resources between DOS and WinXP (Announce) |
Rayer asked on DJGPP forum whether is possible to allocate buffer in size of few MB and shared it between DOS and WinXP applications. --- |
Japheth![]() Germany (South), 05.07.2008, 11:27 @ Laaca |
For Rayer - shared resources between DOS and WinXP |
Yes. Win32 dlls running in a NTVDM are called VDDs. It's "officially" documented how to load and call VDDs from DOS, there is no hack or secret involved. For example, FD Debug (DEBUGX.COM) also uses a VDD to make sector read/write commands work in WinXP. --- |
RayeR![]() CZ, 06.07.2008, 13:26 @ Japheth |
For Rayer - shared resources between DOS and WinXP |
Hehe I see most of guys here visits DJGPP group :) --- |
Japheth![]() Germany (South), 07.07.2008, 09:19 @ RayeR |
For Rayer - shared resources between DOS and WinXP |
> Hehe I see most of guys here visits DJGPP group :) --- |
RayeR![]() CZ, 08.07.2008, 14:02 @ Japheth |
For Rayer - shared resources between DOS and WinXP |
Do you have some short PM call example, please? --- |
Japheth![]() Germany (South), 08.07.2008, 17:08 @ RayeR |
For Rayer - shared resources between DOS and WinXP |
> Do you have some short PM call example, please? --- |
RayeR![]() CZ, 11.07.2008, 02:53 (edited by RayeR, 11.07.2008, 03:09) @ Japheth |
For Rayer - shared resources between DOS and WinXP |
I tried a small experiment in DJGPP. --- |
Japheth![]() Germany (South), 11.07.2008, 09:30 @ RayeR |
For Rayer - shared resources between DOS and WinXP |
> I tried a small experiment in DJGPP. --- |
RayeR![]() CZ, 11.07.2008, 11:18 @ Japheth |
For Rayer - shared resources between DOS and WinXP |
> Yes, addresses in GDT/LDT are linear addresses. Physical addresses are --- |
Japheth![]() Germany (South), 11.07.2008, 11:38 @ RayeR |
For Rayer - shared resources between DOS and WinXP |
> Well, in fact I don't need true physical address but address which will --- |
RayeR![]() CZ, 11.07.2008, 14:12 @ Japheth |
For Rayer - shared resources between DOS and WinXP |
> You must distinguish between the VDD and other Win32 applications. The VDD --- |
Japheth![]() Germany (South), 11.07.2008, 20:39 @ RayeR |
For Rayer - shared resources between DOS and WinXP |
> > You must distinguish between the VDD and other Win32 applications. The --- |
RayeR![]() CZ, 16.07.2008, 15:51 (edited by RayeR, 16.07.2008, 17:06) @ Japheth |
For Rayer - shared resources between DOS and WinXP |
> Usually, inside the VDD, if you got addresses --- |
Japheth![]() Germany (South), 17.07.2008, 08:20 @ RayeR |
For Rayer - shared resources between DOS and WinXP |
> > Usually, inside the VDD, if you got addresses --- |
RayeR![]() CZ, 17.07.2008, 12:25 @ Japheth |
For Rayer - shared resources between DOS and WinXP |
> Yes, of course. The LDT is not a part of your program. --- |
Japheth![]() Germany (South), 17.07.2008, 13:38 @ RayeR |
For Rayer - shared resources between DOS and WinXP |
> > Yes, of course. The LDT is not a part of your program. --- |
RayeR![]() CZ, 17.07.2008, 14:05 @ Japheth |
For Rayer - shared resources between DOS and WinXP |
> A 32bit C compiler "should" always extend arguments with a magnitude < 32 --- |
Rugxulo![]() Usono, 17.07.2008, 14:35 @ RayeR |
For Rayer - shared resources between DOS and WinXP |
> > A 32bit C compiler "should" always extend arguments with a magnitude < |
RayeR![]() CZ, 17.07.2008, 18:55 @ Rugxulo |
For Rayer - shared resources between DOS and WinXP |
> // says "4" for either C or C++ (using DJGPP's GCC 4.2.3) --- |
Rugxulo![]() Usono, 18.07.2008, 13:50 @ RayeR |
For Rayer - shared resources between DOS and WinXP |
> > // says "4" for either C or C++ (using DJGPP's GCC 4.2.3) |
RayeR![]() CZ, 22.07.2008, 10:24 @ Rugxulo |
For Rayer - shared resources between DOS and WinXP |
> The rumor is that MS uses MSVC (various versions) for everything, and that --- |
Rugxulo![]() Usono, 23.07.2008, 00:51 @ RayeR |
For Rayer - shared resources between DOS and WinXP |
> > The rumor is that MS uses MSVC (various versions) for everything, and |
RayeR![]() CZ, 23.07.2008, 16:56 @ Rugxulo |
For Rayer - shared resources between DOS and WinXP |
> Not sure in there is a working example that actually does this for what --- |
Rugxulo![]() Usono, 24.07.2008, 07:06 @ RayeR |
For Rayer - shared resources between DOS and WinXP |
> Thx, I tried this programs and found ntvdm was made by Linker 7.10 VC++ |
Rugxulo![]() Usono, 23.07.2008, 01:00 @ Japheth |
For Rayer - shared resources between DOS and WinXP |
> > Do you have some short PM call example, please? |
RayeR![]() CZ, 11.07.2008, 23:04 @ Laaca |
For Rayer - shared resources between DOS and WinXP |
> Look here: http://www.ragestorm.net/tutorial?id=27 --- |
RayeR![]() CZ, 11.07.2008, 23:19 (edited by RayeR, 11.07.2008, 23:59) @ RayeR |
For Rayer - shared resources between DOS and WinXP |
Aha mingw put some garbage prefix and suffix to DLL export names, so bop.com couldn't find functions InitProc and MyRoutine. Instead there was _Z8InitProcv and _Z9MyRoutinev. Hope gcc have some parameter to avoid this. --- |
ho1459![]() ![]() Germany, 13.07.2008, 08:40 @ Laaca |
For Rayer - shared resources between DOS and WinXP |
> Rayer asked on DJGPP forum whether is possible to allocate buffer in size |