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. Safe App

Safe App

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingquestion
6 Posts 4 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.
  • J Offline
    J Offline
    john5632
    wrote on last edited by
    #1

    How can I make my application exe which should not get debug through any debugger?

    _ E 2 Replies Last reply
    0
    • J john5632

      How can I make my application exe which should not get debug through any debugger?

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      You can use the IsDebuggerPresent API to check the process is being debugged by a user-mode debugger. However this will not prevent the process from being debugged. The API is there to alter the behavior of the program when being debugged. You could not provide the PDB file so that the symbols are not available and debugging becomes difficult.

      «_Superman_»  _I love work. It gives me something to do between weekends.

      _Microsoft MVP (Visual C++)

      Polymorphism in C

      J 1 Reply Last reply
      0
      • _ _Superman_

        You can use the IsDebuggerPresent API to check the process is being debugged by a user-mode debugger. However this will not prevent the process from being debugged. The API is there to alter the behavior of the program when being debugged. You could not provide the PDB file so that the symbols are not available and debugging becomes difficult.

        «_Superman_»  _I love work. It gives me something to do between weekends.

        _Microsoft MVP (Visual C++)

        Polymorphism in C

        J Offline
        J Offline
        john5632
        wrote on last edited by
        #3

        Thanks

        1 Reply Last reply
        0
        • J john5632

          How can I make my application exe which should not get debug through any debugger?

          E Offline
          E Offline
          Emilio Garavaglia
          wrote on last edited by
          #4

          This sounds suspicious: If I have a license for your app, and I have a license for a debugger, I have (as per the EEC law on software copyrights) the full right to run a debugger on it. If you prevent it and I need it, I can even take you to a court to impose you to remove that protection.

          2 bugs found. > recompile ... 65534 bugs found. :doh:

          J 1 Reply Last reply
          0
          • E Emilio Garavaglia

            This sounds suspicious: If I have a license for your app, and I have a license for a debugger, I have (as per the EEC law on software copyrights) the full right to run a debugger on it. If you prevent it and I need it, I can even take you to a court to impose you to remove that protection.

            2 bugs found. > recompile ... 65534 bugs found. :doh:

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            Laws in other places are different however.

            E 1 Reply Last reply
            0
            • J jschell

              Laws in other places are different however.

              E Offline
              E Offline
              Emilio Garavaglia
              wrote on last edited by
              #6

              Not that much. The principle "It sis yopur software, but that's not your computer" was applied by the US court that made Sony BMG retire their own "copyright protection systems" and pay some billions in a class action.

              2 bugs found. > recompile ... 65534 bugs found. :doh:

              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