When I start a process and want to close this process, what are the differences between Process.Close() and Process.Kill() ?
I asked because I have an application that starts to capture a packet using Wireshark using a command through the command line with Windows = hidden . therefore, when I want to stop the capture, I will kill this process. Sometimes, sometimes the capture opens with an error that the last packet was cut in the middle, so I wonder if it can use close() before kill() solves this problem?
When I start to capture, I can close it by pressing Ctrl + C, but in my case I will open the window in a hidden state. Can I do something similar using my code?
c # process
user1710944 Dec 19 '12 at 12:37 2012-12-19 12:37
source share