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. C++ Callback process is dea

C++ Callback process is dea

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
5 Posts 3 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_14221041
    wrote on last edited by
    #1

    Hi all! I want to build a program to manage other processes. The program is responsible for any process that suddenly stops and the program will call back that process. I am wondering how to use CreateEvent() to create a global event variable to manage it. I hope you give me advice and methods to solve that problem. Thank you!

    V 1 Reply Last reply
    0
    • M Member_14221041

      Hi all! I want to build a program to manage other processes. The program is responsible for any process that suddenly stops and the program will call back that process. I am wondering how to use CreateEvent() to create a global event variable to manage it. I hope you give me advice and methods to solve that problem. Thank you!

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      See an example in [Kernel object namespaces - Windows applications | Microsoft Docs](https://docs.microsoft.com/en-us/windows/desktop/TermServ/kernel-object-namespaces) and [Using Event Objects - Windows applications | Microsoft Docs](https://docs.microsoft.com/en-us/windows/desktop/Sync/using-event-objects) And I guess the program you are going to develop should be a service.

      M 1 Reply Last reply
      0
      • V Victor Nijegorodov

        See an example in [Kernel object namespaces - Windows applications | Microsoft Docs](https://docs.microsoft.com/en-us/windows/desktop/TermServ/kernel-object-namespaces) and [Using Event Objects - Windows applications | Microsoft Docs](https://docs.microsoft.com/en-us/windows/desktop/Sync/using-event-objects) And I guess the program you are going to develop should be a service.

        M Offline
        M Offline
        Member_14221041
        wrote on last edited by
        #3

        It is true that the program I will develop should be a service. Do you have experience with this issue please share with me. thank you very much!

        D V 2 Replies Last reply
        0
        • M Member_14221041

          It is true that the program I will develop should be a service. Do you have experience with this issue please share with me. thank you very much!

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Here is but one of many examples.

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

          1 Reply Last reply
          0
          • M Member_14221041

            It is true that the program I will develop should be a service. Do you have experience with this issue please share with me. thank you very much!

            V Offline
            V Offline
            Victor Nijegorodov
            wrote on last edited by
            #5

            Well, it was more than six years back... I used the [NSSM - the Non-Sucking Service Manager](https://nssm.cc/description) The most important thing is you could used the original UI application to use with..., however, in "service" mode you must forbid all UI features.

            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