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