ReactOS  0.4.15-dev-3303-g1ade494
zwfile.c File Reference
#include <wdm.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
Include dependency graph for zwfile.c:

Go to the source code of this file.

Macros

#define NTOSAPI
 

Functions

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

Macro Definition Documentation

◆ NTOSAPI

#define NTOSAPI

Definition at line 10 of file zwfile.c.

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
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
Definition: bufpool.h:45
_In_ PFCB _In_ PCD_NAME _In_ BOOLEAN _Inout_ PFILE_ENUM_CONTEXT FileContext
Definition: cdprocs.h:439
Status
Definition: gdiplustypes.h:24
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
#define NULL
Definition: types.h:112

◆ 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:439
Status
Definition: gdiplustypes.h:24
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
struct _LARGE_INTEGER::@2240 u