|
-
March 27th, 2010, 07:47 PM
#1
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.
-
March 28th, 2010, 09:31 AM
#2
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
-
March 28th, 2010, 05:08 PM
#3
Re: Kill a process VB.NET 2008 Windows Mobile
 Originally Posted by dglienna
I guess the problem i have with that is how do i specify which process to kill?
-
March 29th, 2010, 05:10 PM
#4
Re: Kill a process VB.NET 2008 Windows Mobile
-
March 29th, 2010, 10:02 PM
#5
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.
-
March 29th, 2010, 11:51 PM
#6
Re: Kill a process VB.NET 2008 Windows Mobile
 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.
-
March 30th, 2010, 09:54 AM
#7
Re: Kill a process VB.NET 2008 Windows Mobile
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|