Hello.
I'm a developer who needs help.
First of all, I hope you understand that the sentence structure can be strange as I ask questions using a translator machine.
I am currently working on a program that requires watermarking on any printout.
If our program is running, when printing in programs such as Notepad, Office 2016, mspaint, Adobe Reader, etc., the set watermark is printed well.
However, when printing in Chrome or Edge, the watermark is not displayed.
Currently, we are hooking GDI32.DLL and taking watermarks.
Except for IE11, Chrome, Edge, Notepad, etc. all call the hooked StartDoc function in GDI32.DLL.
I thought that Chrome or Edge would not call the function of GDI32.DLL, but when I saw the hooked function call, I knew it was not.
I think something is blocking itself when printing from Chrome or Edge.
I am curious if the above sentence is correct.
So,
If the idea of the sentence above is correct, the question is how to approach to make the watermark appear in Chrome or Edge printouts?
If even the approach is wrong, I wonder if there is another way.
I would be grateful for any help.
Thank you.
What I have tried:
I hooked the functions of GDI32.DLL to make sure it works in a normal program.