Blame include/ntapi/nt_exception.h

dd89bb
#ifndef _NT_EXCEPTION_H_
dd89bb
#define _NT_EXCEPTION_H_
dd89bb
dd89bb
#include <psxtypes/psxtypes.h>
dd89bb
#include "nt_object.h"
dd89bb
#include "nt_thread.h"
dd89bb
dd89bb
/* limits */
dd89bb
#define NT_EXCEPTION_MAX_PARAMS		(0x0F)
dd89bb
dd89bb
typedef struct _nt_exception_record {
dd89bb
	uint32_t			exception_code;
dd89bb
	uint32_t			exception_flags;
dd89bb
	struct _nt_exception_record *	exception_record;
dd89bb
	void *				exception_address;
dd89bb
	uint32_t			number_of_params;
dd89bb
	uintptr_t			exception_information[NT_EXCEPTION_MAX_PARAMS];
dd89bb
} nt_exception_record;
dd89bb
dd89bb
typedef int32_t __stdcall ntapi_zw_raise_exception(
dd89bb
	__in	nt_exception_record *	exception_record,
dd89bb
	__in	nt_thread_context *	context,
dd89bb
	__in	unsigned char		search_frames);
dd89bb
dd89bb
typedef int32_t __stdcall ntapi_zw_continue(
dd89bb
	__in	nt_thread_context *	context,
dd89bb
	__in	unsigned char		test_alert);
dd89bb
dd89bb
#endif