Ending Processes

Does Anyone know how to stop a processes in C++ i Googled it but didn't find the results i was looking for.

Comments

  • : Does Anyone know how to stop a processes in C++ i Googled it but didn't find the results i was looking for.
    :


    C++ doesn't know anything about processes.

    You'll need to use an API from the OS you are targetting.

    In windows, to end an application you can usually send it a WM_QUIT message, and to end a process you can try TerminateProcess() but read the docs first because that function really shouldn't be used.


    In linux I think you can issue a kill command if you have proper permissions. I'm not sure about other ways.


    [italic][blue]To understand recursive, first you need to understand recursive[/blue][/italic]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion