I want to make a shell extension or app in .NET that logs all windows that are closed. The log should contain the process name that created a window.
I have no ideas on how to do this. Any pointers?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This requires a hook, set by SetWindowsHookEx, WH_SHELL hook type. This hook type requires a DLL that can be injected into a process, such a DLL can’t be written in C#. A 64-bit operating system and UAC will create plenty of obstacles as well. This project can help.