On Wed, 27 Nov 2002, Andrew John Hughes wrote: [...]
- From what I can see, it doesn't appear to be in any header files, yet the
function is there in kernel32, both the code and the spec file. The only thing that is anywhere near similiar is SwitchToThreadStack defined in thread.h. According to MSDN, it should be in winbase.h. Anyone know why it isn't?
Because someone forgot to update winbase.h, that's all. Use this patch:
Index: include/winbase.h =================================================================== RCS file: /home/wine/wine/include/winbase.h,v retrieving revision 1.167 diff -u -r1.167 winbase.h --- include/winbase.h 25 Nov 2002 20:51:31 -0000 1.167 +++ include/winbase.h 27 Nov 2002 00:31:45 -0000 @@ -1496,6 +1496,7 @@ VOID WINAPI Sleep(DWORD); DWORD WINAPI SleepEx(DWORD,BOOL); DWORD WINAPI SuspendThread(HANDLE); +BOOL WINAPI SwitchToThread(void); BOOL WINAPI SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME); DWORD WINAPI TlsAlloc(void); BOOL WINAPI TlsFree(DWORD);