public FileAccessServer(IReloadedHooks hookFactory, NativeFunctions functions) { _hooks = new FileAccessServerHooks( functions.NtCreateFile.Hook(NtCreateFileImpl), functions.NtReadFile.Hook(NtReadFileImpl), functions.NtSetInformationFile.Hook(NtSetInformationFileImpl), functions.NtQueryinformationFile.Hook(NtQueryInformationFileImpl), ImportAddressTableHooker.Hook <CloseHandleDelegate>(hookFactory, "kernel32.dll", "CloseHandle", CloseHandleImpl)); }
public void SetHooks(FileAccessServerHooks hooks) { mHooks = hooks; }