예제 #1
0
 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));
 }
예제 #2
0
 public void SetHooks(FileAccessServerHooks hooks)
 {
     mHooks = hooks;
 }