1 /*++ 2 3 Copyright (c) Microsoft Corporation 4 5 ModuleName: 6 7 MxFileObjectKm.h 8 9 Abstract: 10 11 Kernel Mode implementation of File Object defined in MxFileObject.h 12 13 --*/ 14 15 #pragma once 16 17 #include "MxFileObject.h" 18 19 __inline 20 PUNICODE_STRING 21 MxFileObject::GetFileName( 22 _Inout_opt_ PUNICODE_STRING Filename 23 ) 24 { 25 UNREFERENCED_PARAMETER(Filename); 26 27 return &m_FileObject->FileName; 28 } 29 30 __inline 31 PLARGE_INTEGER 32 MxFileObject::GetCurrentByteOffset( 33 VOID 34 ) 35 { 36 return &m_FileObject->CurrentByteOffset; 37 } 38 39 __inline 40 ULONG 41 MxFileObject::GetFlags( 42 VOID 43 ) 44 { 45 return m_FileObject->Flags; 46 } 47 48 __inline 49 VOID 50 MxFileObject::SetFsContext( 51 _In_ PVOID Value 52 ) 53 { 54 m_FileObject->FsContext = Value; 55 } 56 57 __inline 58 VOID 59 MxFileObject::SetFsContext2( 60 _In_ PVOID Value 61 ) 62 { 63 m_FileObject->FsContext2 = Value; 64 } 65 66 __inline 67 PVOID 68 MxFileObject::GetFsContext( 69 VOID 70 ) 71 { 72 return m_FileObject->FsContext; 73 } 74 75 __inline 76 PVOID 77 MxFileObject::GetFsContext2( 78 VOID 79 ) 80 { 81 return m_FileObject->FsContext2; 82 } 83