ReactOS 0.4.16-dev-136-g52192f1
stubs.h
Go to the documentation of this file.
1
2#ifndef _WINDEF_
3typedef unsigned short wchar_t;
4typedef unsigned long DWORD, ULONG;
5typedef void* PVOID;
6#define __int64 long long
7#ifdef _WIN64
8typedef unsigned long long ULONG_PTR;
9#else
10typedef unsigned long ULONG_PTR;
11#endif
12
13#define EXCEPTION_MAXIMUM_PARAMETERS 15
14typedef struct _EXCEPTION_RECORD {
22
23#define EXCEPTION_NONCONTINUABLE 0x01
24
25#endif
26
27#ifndef PRIx64
28#define PRIx64 "I64x"
29#endif
30
31#define EXCEPTION_WINE_STUB 0x80000100
32#define EH_NONCONTINUABLE 0x01
33
34/* __int128 is not supported on x86, so use a custom type */
35typedef struct
36{
39} MyInt128;
40
41void
45);
46
50 const char* Format,
51 ...
52);
53
54#define __wine_spec_unimplemented_stub(module, function) \
55{ \
56 EXCEPTION_RECORD ExceptionRecord = {0}; \
57 ExceptionRecord.ExceptionRecord = 0; \
58 ExceptionRecord.ExceptionCode = EXCEPTION_WINE_STUB; \
59 ExceptionRecord.ExceptionFlags = EXCEPTION_NONCONTINUABLE; \
60 ExceptionRecord.ExceptionInformation[0] = (ULONG_PTR)module; \
61 ExceptionRecord.ExceptionInformation[1] = (ULONG_PTR)function; \
62 ExceptionRecord.NumberParameters = 2; \
63 RtlRaiseException(&ExceptionRecord); \
64}
#define __cdecl
Definition: accygwin.h:79
unsigned long DWORD
Definition: ntddk_ex.h:95
#define DbgPrint
Definition: hal.h:12
Definition: stubs.h:36
__int64 lower
Definition: stubs.h:37
__int64 upper
Definition: stubs.h:38
struct _EXCEPTION_RECORD * ExceptionRecord
Definition: compat.h:210
DWORD ExceptionCode
Definition: compat.h:208
DWORD NumberParameters
Definition: compat.h:212
DWORD ExceptionFlags
Definition: compat.h:209
ULONG_PTR ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS]
Definition: compat.h:213
PVOID ExceptionAddress
Definition: compat.h:211
void * PVOID
Definition: stubs.h:5
void __stdcall RtlRaiseException(PEXCEPTION_RECORD ExceptionRecord)
struct _EXCEPTION_RECORD EXCEPTION_RECORD
unsigned short wchar_t
Definition: stubs.h:3
#define __int64
Definition: stubs.h:6
unsigned long ULONG_PTR
Definition: stubs.h:10
struct _EXCEPTION_RECORD * PEXCEPTION_RECORD
unsigned long DWORD
Definition: stubs.h:4
unsigned long ULONG
Definition: stubs.h:4
#define __stdcall
Definition: typedefs.h:25
uint32_t ULONG_PTR
Definition: typedefs.h:65
uint32_t ULONG
Definition: typedefs.h:59
#define EXCEPTION_MAXIMUM_PARAMETERS
Definition: winnt_old.h:2349