ReactOS 0.4.16-dev-319-g6cf4263
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_ 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
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
NTSTATUS RosSymStatus
Definition: zwfile.c:12
_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{
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
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::@2303 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().