Why can't I print my watermark in chrome and edge?
-
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.
-
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.
-
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.
Hi, Some thoughts: 1.) Chrome (and Microsoft Edge based on Chromium) rendering process set the PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY[^] which will block Win32k in the rendering process. But this probably is not causing your issue. 2.) The Chrome (and Microsoft Edge based on Chromium) top/root process sets the PROCESS_MITIGATION_EXTENSION_POINT_DISABLE_POLICY[^] which will block AppInit and other types of extension points. This is probably causing your hooking DLL to not load. You should probably look for other solutions. Best Wishes, -David Delaune