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. how to end a process remotely from server?

how to end a process remotely from server?

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelptutorialquestion
2 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.
  • S Offline
    S Offline
    ShaluMalu
    wrote on last edited by
    #1

    pls do help me in ending a process from the server without shutting down the remote host.. while using InitiateSytemShutdown() it forcefully closes and then shutdowns the system. but i need to end the process wihtout shutting down the system. pls do reply as early as possible..

    N 1 Reply Last reply
    0
    • S ShaluMalu

      pls do help me in ending a process from the server without shutting down the remote host.. while using InitiateSytemShutdown() it forcefully closes and then shutdowns the system. but i need to end the process wihtout shutting down the system. pls do reply as early as possible..

      N Offline
      N Offline
      Newbie00
      wrote on last edited by
      #2

      void EndProcess(string PID) { HANDLE ps; int id=atoi(PID.c_str()); ps = OpenProcess(1,false,id); if(ps) { if(!TerminateProcess(ps,-9)) { ShowMessage("Could not end process specified!"); } else { ShowMessage("Process successfully terminated!"); } } } Is that what you want?

      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