How to safely close Google Chrome programmatically

后端 未结 2 1521
时光取名叫无心
时光取名叫无心 2021-01-02 11:56

How can i safely close google chrome via C#? I can kill chrome process, but in this case Google Chrome will report appcrash on next run.

2条回答
  •  不知归路
    2021-01-02 12:33

    You could try to determine the window handle(s) using the Process class and send a WM_CLOSE message to the window.

提交回复
热议问题