示例#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;
 }