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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how can I forbid the user to use print function

how can I forbid the user to use print function

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 2 Posters 1 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 2006398
    wrote on last edited by
    #1

    how can I forbid the user to use print function. Is there any suggestions? I find it's no use to forbid printer like forbid a floppy.thanks.

    C 1 Reply Last reply
    0
    • M Member 2006398

      how can I forbid the user to use print function. Is there any suggestions? I find it's no use to forbid printer like forbid a floppy.thanks.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      How do you mean ? If your app doesn't offer printing, it can't print. Or do you mean print screen ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      M 1 Reply Last reply
      0
      • C Christian Graus

        How do you mean ? If your app doesn't offer printing, it can't print. Or do you mean print screen ?

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        M Offline
        M Offline
        Member 2006398
        wrote on last edited by
        #3

        In my program I want to control other programs to use printer,I want to forbit the other programs' print function.that's what I want.Would you give me some advices?

        C 1 Reply Last reply
        0
        • M Member 2006398

          In my program I want to control other programs to use printer,I want to forbit the other programs' print function.that's what I want.Would you give me some advices?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          That's going to be fairly complex, you'd have to work out what printers were attached and find a way to block communication on those ports. I don't like your chances Why would you do such a thing ?

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          M 1 Reply Last reply
          0
          • C Christian Graus

            That's going to be fairly complex, you'd have to work out what printers were attached and find a way to block communication on those ports. I don't like your chances Why would you do such a thing ?

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

            M Offline
            M Offline
            Member 2006398
            wrote on last edited by
            #5

            Thanks for your reply,I had some code from internet to forbid such as usb,floppy,cdrom.but I have not find a way to forbid printer or forbid print function. The aim of the program is that I have to write it for my leader required it ,that is a reason.

            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