Kill a process VB.NET 2008 Windows Mobile
I have VB.net 2008 with 3.5. I also have Windows Mobile 6 SDK and 6.5 SDK. I am having an issue killing an external process with my app. I have searched and tried numerous bits of code and none seem to work for Mobile. I keep seeing GetProcessByName but that is not an option for Windows Mobile. I know the process exe but the PID changes so I cannot hard code that. I cannot seem to get the code right to find the exe and kill it. Any help with this would be appreciated.
Re: Kill a process VB.NET 2008 Windows Mobile
Have you tried this?
Code:
Dim instance As Process
instance.Kill()
http://msdn.microsoft.com/en-us/libr...cess.kill.aspx
Re: Kill a process VB.NET 2008 Windows Mobile
Quote:
Originally Posted by
dglienna
I guess the problem i have with that is how do i specify which process to kill?
Re: Kill a process VB.NET 2008 Windows Mobile
Re: Kill a process VB.NET 2008 Windows Mobile
The platforms mentioned in the link do not include versions of Windows CE or Windows mobile. I think the problem the OP is having is that this is not supported in the compact framework.
Re: Kill a process VB.NET 2008 Windows Mobile
Quote:
Originally Posted by
DataMiser
The platforms mentioned in the link do not include versions of Windows CE or Windows mobile. I think the problem the OP is having is that this is not supported in the compact framework.
This is correct. GetProcessByName does not work with Windows Mobile. I need an alternative to that to kill a certain process either by name or by finding the PID of the process and then killing it that way.
Re: Kill a process VB.NET 2008 Windows Mobile