Results 1 to 3 of 3

Thread: Old DOS Stack handling by Win2k

  1. #1

    Old DOS Stack handling by Win2k

    Hi all,
    My problem is that i have a BIG DOS4GW Application running under Win2k or WinXp and i wanna try to read/write the Stack of this Application with a Win32 App. (Is it possible???)

    I write myself a small pure DOS (no extender) Application to point out how NTVDM.EXE is handling the Stack. Then i Debugged the Application with ollydbg but i can't find out how the stack is access.

    Then i wrote a Win32 app and try ReadProcessMemory to read the memory of the Process (my testapp interpreted by ntvdm.exe) and check if it changed.
    I wanted obtain the Address of the stack but didn't work. Delivered only a dump of NTVDM.EXE

    After that i tried the Debug API's to access the stack, and read out ESP with GetThreadContext and check that value it is (esp=248).
    Then i read the pointer from [esp]. but it also fails

    Any Suggestion to get this Probleme solved or more detailed information about NTVDM.EXE i read two post about ntvdm here with some good info.

    DOS APP Teststack.exe -> teststack.asm
    Win32 APP Debug4.exe -> debug.asm

    you can take a look a my sources under h**p://


    Last edited by Nukacola; December 22nd, 2004 at 14:31.

  2. #2
    Have you tried WinDbg? It surely is better than OllyDbg for debugging applications running with NTVDM.

  3. #3
    No but i will try that tomorrow

    Thanks for that tip

Similar Threads

  1. FPU Stack in Olly?
    By stamat in forum The Newbie Forum
    Replies: 1
    Last Post: September 16th, 2011, 18:43
  2. Stack over flow without EIP
    By galda in forum The Newbie Forum
    Replies: 10
    Last Post: February 16th, 2010, 08:58
  3. Weird Code: CCs On The Stack
    By OpenRCE_RolfRolles in forum Blogs Forum
    Replies: 0
    Last Post: January 1st, 2008, 18:21
  4. Stack dump
    By bundy in forum Bugs
    Replies: 2
    Last Post: October 1st, 2003, 15:11


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts