DevO-9864 avatar image
0 Votes"
DevO-9864 asked XiaopoYang-MSFT edited

Microsoft.Photos.exe dll injection

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers