Not Monitored
Tag not monitored by Microsoft.
36,253 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.