ReactOS  0.4.15-dev-3299-gbe8e5fc
zwfile.c File Reference
#include <precomp.h>
Include dependency graph for zwfile.c:

Go to the source code of this file.

Functions

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

Variables

NTSTATUS RosSymStatus
 

Function Documentation

◆ RosSymZwReadFile()

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

Definition at line 15 of file zwfile.c.

16 {
17  //NTSTATUS Status;
19 
20  RosSymStatus = ZwReadFile(*((HANDLE *) FileContext),
21  NULL, NULL, NULL,
23  Buffer,
24  Size,
25  NULL, NULL);
26 
28 }
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
NTSTATUS RosSymStatus
Definition: zwfile.c:12
Definition: bufpool.h:45
_In_ PFCB _In_ PCD_NAME _In_ BOOLEAN _Inout_ PFILE_ENUM_CONTEXT FileContext
Definition: cdprocs.h:439
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
#define NULL
Definition: types.h:112

Referenced by RosSymInitKernelMode(), and RosSymInitUserMode().

◆ RosSymZwSeekFile()

BOOLEAN RosSymZwSeekFile ( PVOID  FileContext,
ULONG_PTR  Position 
)

Definition at line 31 of file zwfile.c.

32 {
33  //NTSTATUS Status;
35  FILE_POSITION_INFORMATION NewPosition;
36 
37  NewPosition.CurrentByteOffset.u.HighPart = 0;
38  NewPosition.CurrentByteOffset.u.LowPart = Position;
39  RosSymStatus = ZwSetInformationFile(*((HANDLE *) FileContext),
41  (PVOID) &NewPosition,
44 
45  return NT_SUCCESS(RosSymStatus);
46 }
static COORD Position
Definition: mouse.c:34
NTSTATUS RosSymStatus
Definition: zwfile.c:12
LARGE_INTEGER CurrentByteOffset
Definition: nt_native.h:955
_In_ PFCB _In_ PCD_NAME _In_ BOOLEAN _Inout_ PFILE_ENUM_CONTEXT FileContext
Definition: cdprocs.h:439
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
struct _LARGE_INTEGER::@2240 u

Referenced by RosSymInitKernelMode(), and RosSymInitUserMode().

Variable Documentation

◆ RosSymStatus

NTSTATUS RosSymStatus

Definition at line 12 of file zwfile.c.

Referenced by RosSymCreateFromFile(), RosSymZwReadFile(), and RosSymZwSeekFile().