🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1000

StackStackTo question

#1000
From: Avygdor Moise
Date: Wed, 02 Jan 1991 22:56
13 lines
1036 bytes
I am trying to use the Windows 3.0 function SwitchStackTo. It takes 3 args.
	wStackSegment  The segement of the stack - no problem here.
	wStackPointer  The offset of the "beginning" of the stack
	wStackTop      The offset of the top of the stack from the beginning.

I find this a bit confusing. Has Anyone used this function? As is usaully
the case with complex api, no example was given in the manual. What are
the real meanings of the second two argument?

I am trying to implement simplified multithreading in windows, and this 
looks like the ideal way to switch stack contexts.

Thanks in advance, Peter
Technical Details
Message-ID: <16850@ists.ists.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!gkcl!avy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!gkcl!avy
From: avy@gkcl.ists.ca (Avygdor Moise)
Newsgroups: comp.windows.ms.programmer
Subject: StackStackTo question
Message-ID: <16850@ists.ists.ca>
Date: 2 Jan 91 22:56:55 GMT
Sender: news@ists.ists.ca
Reply-To: peterc@ists.ists.ca (Peter Camilleri)
Organization: Institute for Space and Terrestrial Science
Lines: 15