mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 05:28:14 +00:00
[SDK] Implement __wine_spec_unimplemented_stub with ntdll functions
This commit is contained in:
parent
1968776bf2
commit
ef202724d8
1 changed files with 22 additions and 13 deletions
|
@ -4,19 +4,28 @@
|
||||||
#define EXCEPTION_WINE_STUB 0x80000100
|
#define EXCEPTION_WINE_STUB 0x80000100
|
||||||
#define EH_NONCONTINUABLE 0x01
|
#define EH_NONCONTINUABLE 0x01
|
||||||
|
|
||||||
ULONG __cdecl DbgPrint(_In_z_ _Printf_format_string_ PCSTR Format, ...);
|
NTSYSAPI
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
WINAPI
|
NTAPI
|
||||||
RaiseException(_In_ DWORD dwExceptionCode,
|
RtlRaiseException(
|
||||||
_In_ DWORD dwExceptionFlags,
|
_In_ PEXCEPTION_RECORD ExceptionRecord
|
||||||
_In_ DWORD nNumberOfArguments,
|
);
|
||||||
_In_ CONST ULONG_PTR *lpArguments OPTIONAL);
|
|
||||||
|
ULONG
|
||||||
|
__cdecl
|
||||||
|
DbgPrint(
|
||||||
|
_In_z_ _Printf_format_string_ PCSTR Format,
|
||||||
|
...
|
||||||
|
);
|
||||||
|
|
||||||
#define __wine_spec_unimplemented_stub(module, function) \
|
#define __wine_spec_unimplemented_stub(module, function) \
|
||||||
{ \
|
{ \
|
||||||
ULONG_PTR args[2]; \
|
EXCEPTION_RECORD ExceptionRecord = {0}; \
|
||||||
args[0] = (ULONG_PTR)module; \
|
ExceptionRecord.ExceptionRecord = NULL; \
|
||||||
args[1] = (ULONG_PTR)function; \
|
ExceptionRecord.ExceptionCode = EXCEPTION_WINE_STUB; \
|
||||||
RaiseException( EXCEPTION_WINE_STUB, EH_NONCONTINUABLE, 2, args ); \
|
ExceptionRecord.ExceptionFlags = EXCEPTION_NONCONTINUABLE; \
|
||||||
|
ExceptionRecord.ExceptionInformation[0] = (ULONG_PTR)module; \
|
||||||
|
ExceptionRecord.ExceptionInformation[1] = (ULONG_PTR)function; \
|
||||||
|
ExceptionRecord.NumberParameters = 2; \
|
||||||
|
RtlRaiseException(&ExceptionRecord); \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue