avy@stpl.ists.ca (Avygdor Moise) (01/03/91)
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