Slightly improve keyboard tracking in combobox.
[wine/testsucceed.git] / dlls / msvcrt / msvcrt.h
blobb4368da99dfd4f67699b905650db3c93f15d7d6b
1 #ifndef __WINE_MSVCRT_H
2 #define __WINE_MSVCRT_H
4 #include "config.h"
5 #include "windef.h"
6 #include "debugtools.h"
7 #include "winbase.h"
8 #include "winerror.h"
9 #include "winnls.h"
10 #include <stdarg.h>
11 #include <ctype.h>
12 #include <string.h>
14 /* TLS data */
15 extern DWORD MSVCRT_tls_index;
17 typedef struct __MSVCRT_thread_data
19 int errno;
20 int doserrno;
21 } MSVCRT_thread_data;
23 #define GET_THREAD_DATA(x) \
24 x = TlsGetValue(MSVCRT_tls_index)
25 #define GET_THREAD_VAR(x) \
26 ((MSVCRT_thread_data*)TlsGetValue(MSVCRT_tls_index))->x
27 #define GET_THREAD_VAR_PTR(x) \
28 (&((MSVCRT_thread_data*)TlsGetValue(MSVCRT_tls_index))->x)
29 #define SET_THREAD_VAR(x,y) \
30 ((MSVCRT_thread_data*)TlsGetValue(MSVCRT_tls_index))->x = y
32 void MSVCRT__set_errno(int);
33 char* msvcrt_strndup(const char*,unsigned int);
34 LPWSTR msvcrt_wstrndup(LPCWSTR, unsigned int);
36 /* FIXME: This should be declared in new.h but it's not an extern "C" so
37 * it would not be much use anyway. Even for Winelib applications.
39 int MSVCRT__set_new_mode(int mode);
41 #endif /* __WINE_MSVCRT_H */