您可以看看这个函数GenerateConsoleCtrlEvent
https://msdn.microsoft.com/en-us/library/windows/desktop/ms683155(v=vs.85).aspx
dwCtrlEvent [in]
The type of signal to be generated. This parameter can be one of the following values.
dwProcessGroupId [in]
The identifier of the process group to receive the signal.
希望这些对你有帮助。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.