Whither SwitchToThread()?
Francois Gouget
fgouget at free.fr
Tue Nov 26 18:33:03 CST 2002
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);
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
"Lotto: A tax on people who are bad at math." -- unknown
"Windows: Microsoft's tax on computer illiterates." -- WE7U
More information about the wine-devel
mailing list