ReactOS 0.4.15-dev-8131-g4988de4
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.

Functions

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

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:32
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

◆ 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::@2300 u