Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Why can't I print my watermark in chrome and edge?

Why can't I print my watermark in chrome and edge?

Scheduled Pinned Locked Moved C / C++ / MFC
questionadobehelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 14872681
    wrote on last edited by
    #1

    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.

    L 2 Replies Last reply
    0
    • M Member 14872681

      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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You already posted this in the Quick Answers forum at Why can't I print my watermark in chrome and edge?[^]. Please do not crosspost. 교차 게시하지 마십시오

      1 Reply Last reply
      0
      • M Member 14872681

        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.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups