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 <ntddk.h> 12 #include <reactos/rossym.h> 13 #include "rossympriv.h" 14 15 #define NDEBUG 16 #include <debug.h> 17 18 NTSTATUS RosSymStatus; 19 20 BOOLEAN 21 RosSymIoReadFile(PVOID FileContext, PVOID Buffer, ULONG Size) 22 { 23 PROSSYM_OWN_FILECONTEXT OwnContext = (PROSSYM_OWN_FILECONTEXT)FileContext; 24 return OwnContext->ReadFileProc(FileContext, Buffer, Size); 25 } 26 27 BOOLEAN 28 RosSymIoSeekFile(PVOID FileContext, ULONG_PTR Position) 29 { 30 PROSSYM_OWN_FILECONTEXT OwnContext = (PROSSYM_OWN_FILECONTEXT)FileContext; 31 return OwnContext->SeekFileProc(FileContext, Position); 32 } 33 34 /* EOF */ 35