mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 01:13:38 +00:00
105 lines
2.8 KiB
C
105 lines
2.8 KiB
C
|
/*
|
||
|
* COPYRIGHT: See COPYING in the top level directory
|
||
|
* PROJECT: ReactOS System Libraries
|
||
|
* FILE: lib/rtl/rtlp.h
|
||
|
* PURPOSE: Run-Time Libary Internal Header
|
||
|
* PROGRAMMER: Alex Ionescu
|
||
|
*/
|
||
|
|
||
|
/* INCLUDES ******************************************************************/
|
||
|
|
||
|
/* PAGED_CODE equivalent for user-mode RTL */
|
||
|
#ifdef DBG
|
||
|
extern VOID FASTCALL CHECK_PAGED_CODE_RTL(char *file, int line);
|
||
|
#define PAGED_CODE_RTL() CHECK_PAGED_CODE_RTL(__FILE__, __LINE__)
|
||
|
#else
|
||
|
#define PAGED_CODE_RTL()
|
||
|
#endif
|
||
|
|
||
|
/* These provide support for sharing code between User and Kernel RTL */
|
||
|
PVOID
|
||
|
STDCALL
|
||
|
RtlpAllocateMemory(
|
||
|
ULONG Bytes,
|
||
|
ULONG Tag);
|
||
|
|
||
|
VOID
|
||
|
STDCALL
|
||
|
RtlpFreeMemory(
|
||
|
PVOID Mem,
|
||
|
ULONG Tag);
|
||
|
|
||
|
KPROCESSOR_MODE
|
||
|
STDCALL
|
||
|
RtlpGetMode(VOID);
|
||
|
|
||
|
NTSTATUS
|
||
|
STDCALL
|
||
|
RtlDeleteHeapLock(PRTL_CRITICAL_SECTION CriticalSection);
|
||
|
|
||
|
NTSTATUS
|
||
|
STDCALL
|
||
|
RtlEnterHeapLock(PRTL_CRITICAL_SECTION CriticalSection);
|
||
|
|
||
|
NTSTATUS
|
||
|
STDCALL
|
||
|
RtlInitializeHeapLock(PRTL_CRITICAL_SECTION CriticalSection);
|
||
|
|
||
|
NTSTATUS
|
||
|
STDCALL
|
||
|
RtlLeaveHeapLock(PRTL_CRITICAL_SECTION CriticalSection);
|
||
|
|
||
|
BOOLEAN
|
||
|
NTAPI
|
||
|
RtlpCheckForActiveDebugger(VOID);
|
||
|
|
||
|
BOOLEAN
|
||
|
NTAPI
|
||
|
RtlpHandleDpcStackException(IN PEXCEPTION_REGISTRATION_RECORD RegistrationFrame,
|
||
|
IN ULONG_PTR RegistrationFrameEnd,
|
||
|
IN OUT PULONG_PTR StackLow,
|
||
|
IN OUT PULONG_PTR StackHigh);
|
||
|
|
||
|
#define RtlpAllocateStringMemory RtlpAllocateMemory
|
||
|
#define RtlpFreeStringMemory RtlpFreeMemory
|
||
|
|
||
|
/* i386/except.S */
|
||
|
|
||
|
EXCEPTION_DISPOSITION
|
||
|
STDCALL
|
||
|
RtlpExecuteHandlerForException(PEXCEPTION_RECORD ExceptionRecord,
|
||
|
PEXCEPTION_REGISTRATION_RECORD RegistrationFrame,
|
||
|
PCONTEXT Context,
|
||
|
PVOID DispatcherContext,
|
||
|
PEXCEPTION_HANDLER ExceptionHandler);
|
||
|
|
||
|
EXCEPTION_DISPOSITION
|
||
|
STDCALL
|
||
|
RtlpExecuteHandlerForUnwind(PEXCEPTION_RECORD ExceptionRecord,
|
||
|
PEXCEPTION_REGISTRATION_RECORD RegistrationFrame,
|
||
|
PCONTEXT Context,
|
||
|
PVOID DispatcherContext,
|
||
|
PEXCEPTION_HANDLER ExceptionHandler);
|
||
|
|
||
|
VOID
|
||
|
NTAPI
|
||
|
RtlpCheckLogException(IN PEXCEPTION_RECORD ExceptionRecord,
|
||
|
IN PCONTEXT ContextRecord,
|
||
|
IN PVOID ContextData,
|
||
|
IN ULONG Size);
|
||
|
|
||
|
PVOID
|
||
|
NTAPI
|
||
|
RtlpGetExceptionAddress(VOID);
|
||
|
|
||
|
VOID
|
||
|
NTAPI
|
||
|
RtlpCaptureContext(OUT PCONTEXT ContextRecord);
|
||
|
|
||
|
/* Tags for the String Allocators */
|
||
|
#define TAG_USTR TAG('U', 'S', 'T', 'R')
|
||
|
#define TAG_ASTR TAG('A', 'S', 'T', 'R')
|
||
|
#define TAG_OSTR TAG('O', 'S', 'T', 'R')
|
||
|
|
||
|
/* EOF */
|