We are currently working on injecting dll into Microsoft.Photos.exe.
Use the Microsoft-provided SetWindowsHookEx to set up a global chain of hooks as follows:
g_hCBTHook = SetWindowsHookEx(WH_CBT, CBTFunc, g_hCBTModule, 0);
It's about window activation, creation, destruction, etc. (WH_CBT)
However, currently, when you open a png file using Microsoft.Photos.exe, a window is created, but DLL injection is not performed.
Other exe files are injected very normally (excel, ppt, etc).
I wonder how to do DLL injection when the above app is opened.