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

Go to the source code of this file.

Classes

struct  _ROSSYM_INFO
 

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)
 

Typedefs

typedef struct _ROSSYM_INFO ROSSYM_INFO
 

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 IMAGE_DOS_SIGNATURE
Definition: pedump.c:89
static const WCHAR L[]
Definition: oid.c:1250

Definition at line 29 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 31 of file rossympriv.h.

◆ RosSymAllocMem

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

Definition at line 21 of file rossympriv.h.

◆ RosSymFreeMem

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

Definition at line 22 of file rossympriv.h.

◆ RosSymReadFile

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

Definition at line 23 of file rossympriv.h.

◆ RosSymSeekFile

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

Definition at line 24 of file rossympriv.h.

Typedef Documentation

◆ ROSSYM_INFO

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

Referenced by RosSymInitKernelMode(), and RosSymInitUserMode().

◆ 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
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
struct _LARGE_INTEGER::@2221 u

Referenced by RosSymInitKernelMode(), and RosSymInitUserMode().

Variable Documentation

◆ RosSymCallbacks

ROSSYM_CALLBACKS RosSymCallbacks

Definition at line 14 of file init.c.