ReactOS 0.4.16-dev-250-g3ecd236
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 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 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

◆ 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 L(x)
Definition: ntvdm.h:50
#define IMAGE_DOS_SIGNATURE
Definition: pedump.c:89

Definition at line 22 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)
static const WCHAR Signature[]
Definition: parser.c:141
#define IMAGE_NT_OPTIONAL_HDR_MAGIC
Definition: ntimage.h:387
#define IMAGE_NT_SIGNATURE
Definition: pedump.c:93

Definition at line 24 of file rossympriv.h.

◆ RosSymAllocMem

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

Definition at line 14 of file rossympriv.h.

◆ RosSymFreeMem

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

Definition at line 15 of file rossympriv.h.

◆ RosSymReadFile

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

Definition at line 16 of file rossympriv.h.

◆ RosSymSeekFile

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

Definition at line 17 of file rossympriv.h.

Function Documentation

◆ RosSymZwReadFile()

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

Definition at line 15 of file zwfile.c.

16{
19
20 Status = ZwReadFile(*((HANDLE *) FileContext),
21 NULL, NULL, NULL,
23 Buffer,
24 Size,
25 NULL, NULL);
26
28}
LONG NTSTATUS
Definition: precomp.h:26
_In_ PFCB _In_ PCD_NAME _In_ BOOLEAN _Inout_ PFILE_ENUM_CONTEXT FileContext
Definition: cdprocs.h:442
Definition: bufpool.h:45
#define NULL
Definition: types.h:112
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
Status
Definition: gdiplustypes.h:25
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533

Referenced by RosSymInitKernelMode(), and RosSymInitUserMode().

◆ RosSymZwSeekFile()

BOOLEAN RosSymZwSeekFile ( PVOID  FileContext,
ULONG_PTR  Position 
)

Definition at line 31 of file zwfile.c.

32{
35 FILE_POSITION_INFORMATION NewPosition;
36
37 NewPosition.CurrentByteOffset.u.HighPart = 0;
38 NewPosition.CurrentByteOffset.u.LowPart = Position;
39 Status = ZwSetInformationFile(*((HANDLE *) FileContext),
41 (PVOID) &NewPosition,
44
45 return NT_SUCCESS(Status);
46}
@ FilePositionInformation
Definition: from_kernel.h:75
LARGE_INTEGER CurrentByteOffset
Definition: nt_native.h:955
static COORD Position
Definition: mouse.c:34
struct _LARGE_INTEGER::@2302 u

Referenced by RosSymInitKernelMode(), and RosSymInitUserMode().

Variable Documentation

◆ RosSymCallbacks

ROSSYM_CALLBACKS RosSymCallbacks
extern

Definition at line 14 of file init.c.