Board index » delphi » Modifying SS register in Windows 3.1

Modifying SS register in Windows 3.1

Does anyone know of a safe way to allocate a block of memory for use as a
new stack in Windows 3.1?  Specifically, from within a DLL I need to be
able to temporaraly redirect a programs stack to a new segment before
loading another DLL, and return the stack to its original location on
return from the child DLL.

 

Re:Modifying SS register in Windows 3.1


In article <DrF96L....@gil.com.au>,
Bill Hitchcock <soft...@gil.com.au> says:

Quote
>Does anyone know of a safe way to allocate a block of memory for use as a
>new stack in Windows 3.1?  Specifically, from within a DLL I need to be
>able to temporaraly redirect a programs stack to a new segment before
>loading another DLL, and return the stack to its original location on
>return from the child DLL.

SwitchStackTo.

-----------------------------------------------------------------------
  Zweitze de Vries                           zwei...@cyco.nl
  Cyco Software Development
  Handelskade 49
  Rijswijk, Netherlands                      (+31) 70 3954179

Other Threads