]> gitweb.factorcode.org Git - factor.git/blob - vm/os-windows-nt.hpp
Added basic win32 start-thread support
[factor.git] / vm / os-windows-nt.hpp
1 #undef _WIN32_WINNT
2 #define _WIN32_WINNT 0x0501  // For AddVectoredExceptionHandler
3
4 #ifndef UNICODE
5 #define UNICODE
6 #endif
7
8 #include <windows.h>
9 #include <shellapi.h>
10
11 namespace factor
12 {
13
14 typedef char symbol_char;
15
16 #define FACTOR_OS_STRING "winnt"
17 #define FACTOR_DLL L"factor.dll"
18 #define FACTOR_DLL_NAME "factor.dll"
19
20 #define FACTOR_STDCALL __attribute__((stdcall))
21
22 FACTOR_STDCALL LONG exception_handler(PEXCEPTION_POINTERS pe);
23
24
25 // SSE traps raise these exception codes, which are defined in internal NT headers
26 // but not winbase.h
27 #define STATUS_FLOAT_MULTIPLE_FAULTS 0xC00002B4
28 #define STATUS_FLOAT_MULTIPLE_TRAPS  0xC00002B5
29
30 void start_thread(void *(*start_routine)(void *),void *args);
31
32 }