ReactOS  0.4.13-dev-100-gc8611ae
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 #define NTOSAPI
11 #include <wdm.h>
12 #include <reactos/rossym.h>
13 #include "rossympriv.h"
14 
15 BOOLEAN
17 {
20 
21  Status = ZwReadFile(*((HANDLE *) FileContext),
22  NULL, NULL, NULL,
24  Buffer,
25  Size,
26  NULL, NULL);
27 
29 }
30 
31 BOOLEAN
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
uint32_t ULONG_PTR
Definition: typedefs.h:63
unsigned char BOOLEAN
smooth NULL
Definition: ftsmooth.c:416
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:444
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
BOOLEAN RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
Definition: zwfile.c:16
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359
Status
Definition: gdiplustypes.h:24
static OUT PIO_STATUS_BLOCK IoStatusBlock
Definition: pipe.c:75
struct _LARGE_INTEGER::@2192 u
unsigned int ULONG
Definition: retypes.h:1
BOOLEAN RosSymZwSeekFile(PVOID FileContext, ULONG_PTR Position)
Definition: zwfile.c:32