ReactOS  0.4.15-dev-3453-gff89651
zwfile.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS kernel
4  * FILE: lib/rossym/zwfile.c
5  * PURPOSE: File I/O using native functions
6  *
7  * PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
8  */
9 
10 #include <precomp.h>
11 
13 
14 BOOLEAN
16 {
17  //NTSTATUS Status;
19 
20  RosSymStatus = ZwReadFile(*((HANDLE *) FileContext),
21  NULL, NULL, NULL,
23  Buffer,
24  Size,
25  NULL, NULL);
26 
28 }
29 
30 BOOLEAN
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 }
47 
48 /* EOF */
static COORD Position
Definition: mouse.c:34
LONG NTSTATUS
Definition: precomp.h:26
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
uint32_t ULONG_PTR
Definition: typedefs.h:65
NTSTATUS RosSymStatus
Definition: zwfile.c:12
unsigned char BOOLEAN
LARGE_INTEGER CurrentByteOffset
Definition: nt_native.h:955
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
BOOLEAN RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
Definition: zwfile.c:16
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
#define NULL
Definition: types.h:112
struct _LARGE_INTEGER::@2240 u
unsigned int ULONG
Definition: retypes.h:1
BOOLEAN RosSymZwSeekFile(PVOID FileContext, ULONG_PTR Position)
Definition: zwfile.c:32