Skip to content

Replacement Everything. I don't want to use IPC. USNQueryEngine

License

Notifications You must be signed in to change notification settings

hqzzzz/USNQueryEngine

Repository files navigation

USNQueryEngine

Replacement Everything. I don't want to use IPC.

If you don't know what is Everything , just look at here

How does it work?

  • Read USN
  • Find USN logs

Image text

Make it in One Dll.

(ProjectDir)ILMerge\ILMerge.exe /ndebug  /targetPlatform:v4  /target:dll /out:$(SolutionDir)bin\$(TargetFileName) $(TargetDir)PInvoke.dll  $(TargetDir)UsnOperation.dll $(TargetDir)USNQueryEngine.dll

How to use?

  • C#
  1. Introducing Dll files

  2. Reference <Enginetest>

using USNQueryEngine;

class Program
{
 static void Main(string[] args)
 {
   

     var entries = USNEngine.GetAllFilesAndDirectories();
     var result = entries
             .Where(f => f.FileName.ToUpper().Contains(filter))
             .OrderBy(f => f.FileName)
             .ToList();

     if (result.Count()>0)
     {
         var table = new ConsoleTable("FileName", "Path");
         foreach (var item in result)
         {
             if (item is FileAndDirectoryEntry)
             {
                 table.AddRow(item.FileName, item.Path);
             }
         }
         table.Write();
         Console.WriteLine();
     }
 }
}

Related Projects

About

Replacement Everything. I don't want to use IPC. USNQueryEngine

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages