Microsoft.Photos.exe dll injection

DevO 21 Reputation points
2021-09-28T00:00:01.023+00:00

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.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,203 questions
0 comments No comments
{count} votes