factor/vm/os-windows-nt.hpp

33 lines
700 B
C++
Raw Normal View History

2009-05-02 05:04:19 -04:00
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0501 // For AddVectoredExceptionHandler
#ifndef UNICODE
#define UNICODE
#endif
#include <windows.h>
2009-05-05 14:03:24 -04:00
#include <shellapi.h>
2009-05-02 05:04:19 -04:00
2009-05-04 02:46:13 -04:00
namespace factor
{
2009-05-04 05:50:24 -04:00
typedef char symbol_char;
2009-05-02 05:04:19 -04:00
#define FACTOR_OS_STRING "winnt"
#define FACTOR_DLL L"factor.dll"
#define FACTOR_DLL_NAME "factor.dll"
#define FACTOR_STDCALL __attribute__((stdcall))
FACTOR_STDCALL LONG exception_handler(PEXCEPTION_POINTERS pe);
2009-05-04 02:46:13 -04:00
2009-08-23 09:36:24 -04:00
// SSE traps raise these exception codes, which are defined in internal NT headers
// but not winbase.h
#define STATUS_FLOAT_MULTIPLE_FAULTS 0xC00002B4
#define STATUS_FLOAT_MULTIPLE_TRAPS 0xC00002B5
2009-08-23 09:36:24 -04:00
void start_thread(void *(*start_routine)(void *),void *args);
2009-05-04 02:46:13 -04:00
}