mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
34 lines
1.3 KiB
C
34 lines
1.3 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* FILE: lib/rossym/rossympriv.h
|
|
* PURPOSE: Private header for rossym
|
|
*
|
|
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
typedef struct _ROSSYM_INFO {
|
|
PROSSYM_ENTRY Symbols;
|
|
ULONG SymbolsCount;
|
|
PCHAR Strings;
|
|
ULONG StringsLength;
|
|
} ROSSYM_INFO;
|
|
|
|
extern ROSSYM_CALLBACKS RosSymCallbacks;
|
|
|
|
#define RosSymAllocMem(Size) (*RosSymCallbacks.AllocMemProc)(Size)
|
|
#define RosSymFreeMem(Area) (*RosSymCallbacks.FreeMemProc)(Area)
|
|
#define RosSymReadFile(FileContext, Buffer, Size) (*RosSymCallbacks.ReadFileProc)((FileContext), (Buffer), (Size))
|
|
#define RosSymSeekFile(FileContext, Position) (*RosSymCallbacks.SeekFileProc)((FileContext), (Position))
|
|
|
|
extern BOOLEAN RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size);
|
|
extern BOOLEAN RosSymZwSeekFile(PVOID FileContext, ULONG_PTR Position);
|
|
|
|
#define ROSSYM_IS_VALID_DOS_HEADER(DosHeader) (IMAGE_DOS_SIGNATURE == (DosHeader)->e_magic \
|
|
&& 0L != (DosHeader)->e_lfanew)
|
|
#define ROSSYM_IS_VALID_NT_HEADERS(NtHeaders) (IMAGE_NT_SIGNATURE == (NtHeaders)->Signature \
|
|
&& IMAGE_NT_OPTIONAL_HDR_MAGIC == (NtHeaders)->OptionalHeader.Magic)
|
|
|
|
/* EOF */
|