0

I want to print some information in the background or title or columns of certain or all folders.

For example, when I enter the folder of a .git project, I want to be able to show which branch is active somewhere in the explorer window with programmatically (for example BHO) or with a cmd script (for example, "git rev-parse --abbrev-ref HEAD").

What is the best way to do this?

torek
  • 448,244
  • 59
  • 642
  • 775
Fatih
  • 945
  • 15
  • 26
  • 1
    Maybe you could try to get the window handle, and then set set the title (branch name) using `SetWindowText`. It's doesn't solve all the requirements, but it's a start. – Andro Mar 09 '22 at 16:14
  • Thanks for the answer. But in order to use SetWindowText, don't I need to constantly scan explorer processes with a service application? This is not a good solution in terms of performance. But it's still a solution :) – Fatih Mar 09 '22 at 21:06
  • You could create a hook, and check when a new window is created/closed etc... https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowshookexa?redirectedfrom=MSDN – Andro Apr 03 '22 at 19:29

0 Answers0