ReactOS  0.4.14-dev-55-g2da92ac
rossympriv.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HIGHBIT   0x80000000
 
#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))
 
#define RosSymGetMem(TargetAddress, Address, Size)   (*RosSymCallbacks.MemGetProc)((TargetAddress), (Address), (Size))
 
#define ROSSYM_IS_VALID_DOS_HEADER(DosHeader)
 
#define ROSSYM_IS_VALID_NT_HEADERS(NtHeaders)
 

Functions

BOOLEAN RosSymZwReadFile (PVOID FileContext, PVOID Buffer, ULONG Size)
 
BOOLEAN RosSymZwSeekFile (PVOID FileContext, ULONG_PTR Position)
 

Variables

ROSSYM_CALLBACKS RosSymCallbacks
 

Macro Definition Documentation

◆ HIGHBIT

#define HIGHBIT   0x80000000

Definition at line 12 of file rossympriv.h.

◆ ROSSYM_IS_VALID_DOS_HEADER

#define ROSSYM_IS_VALID_DOS_HEADER (   DosHeader)
Value:
(IMAGE_DOS_SIGNATURE == (DosHeader)->e_magic \
&& 0L != (DosHeader)->e_lfanew)
WORD e_magic
Definition: crypt.c:1154
#define IMAGE_DOS_SIGNATURE
Definition: pedump.c:89
static const WCHAR L[]
Definition: oid.c:1250

Definition at line 25 of file rossympriv.h.

◆ ROSSYM_IS_VALID_NT_HEADERS

#define ROSSYM_IS_VALID_NT_HEADERS (   NtHeaders)
Value:
(IMAGE_NT_SIGNATURE == (NtHeaders)->Signature \
&& IMAGE_NT_OPTIONAL_HDR_MAGIC == (NtHeaders)->OptionalHeader.Magic)
#define IMAGE_NT_SIGNATURE
Definition: pedump.c:93
#define IMAGE_NT_OPTIONAL_HDR_MAGIC
Definition: ntimage.h:387
static const WCHAR Signature[]
Definition: parser.c:141

Definition at line 27 of file rossympriv.h.

◆ RosSymAllocMem

#define RosSymAllocMem (   Size)    (*RosSymCallbacks.AllocMemProc)(Size)

Definition at line 16 of file rossympriv.h.

◆ RosSymFreeMem

#define RosSymFreeMem (   Area)    (*RosSymCallbacks.FreeMemProc)(Area)

Definition at line 17 of file rossympriv.h.

◆ RosSymGetMem

#define RosSymGetMem (   TargetAddress,
  Address,
  Size 
)    (*RosSymCallbacks.MemGetProc)((TargetAddress), (Address), (Size))

Definition at line 20 of file rossympriv.h.

◆ RosSymReadFile

#define RosSymReadFile (   FileContext,
  Buffer,
  Size 
)    (*RosSymCallbacks.ReadFileProc)((FileContext), (Buffer), (Size))

Definition at line 18 of file rossympriv.h.

◆ RosSymSeekFile

#define RosSymSeekFile (   FileContext,
  Position 
)    (*RosSymCallbacks.SeekFileProc)((FileContext), (Position))

Definition at line 19 of file rossympriv.h.

Function Documentation

◆ RosSymZwReadFile()

BOOLEAN RosSymZwReadFile ( PVOID  FileContext,
PVOID  Buffer,
ULONG  Size 
)

Definition at line 16 of file zwfile.c.

17 {
20 
21  Status = ZwReadFile(*((HANDLE *) FileContext),
22  NULL, NULL, NULL,
24  Buffer,
25  Size,
26  NULL, NULL);
27 
29 }
LONG NTSTATUS
Definition: precomp.h:26
smooth NULL
Definition: ftsmooth.c:416
Definition: bufpool.h:45
_In_ PFCB _In_ PCD_NAME _In_ BOOLEAN _Inout_ PFILE_ENUM_CONTEXT FileContext
Definition: cdprocs.h:444
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359
Status
Definition: gdiplustypes.h:24
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75

◆ RosSymZwSeekFile()

BOOLEAN RosSymZwSeekFile ( PVOID  FileContext,
ULONG_PTR  Position 
)

Definition at line 32 of file zwfile.c.

33 {
36  FILE_POSITION_INFORMATION NewPosition;
37 
38  NewPosition.CurrentByteOffset.u.HighPart = 0;
39  NewPosition.CurrentByteOffset.u.LowPart = Position;
40  Status = ZwSetInformationFile(*((HANDLE *) FileContext),
42  (PVOID) &NewPosition,
45 
46  return NT_SUCCESS(Status);
47 }
static COORD Position
Definition: mouse.c:34
LONG NTSTATUS
Definition: precomp.h:26
struct _LARGE_INTEGER::@2201 u
LARGE_INTEGER CurrentByteOffset
Definition: nt_native.h:955
_In_ PFCB _In_ PCD_NAME _In_ BOOLEAN _Inout_ PFILE_ENUM_CONTEXT FileContext
Definition: cdprocs.h:444
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
Status
Definition: gdiplustypes.h:24
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75

Variable Documentation

◆ RosSymCallbacks

ROSSYM_CALLBACKS RosSymCallbacks

Definition at line 14 of file init.c.

Referenced by dwarfgetarg(), dwarfregunwind(), and RosSymInit().