Smart Device Functions:
Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than coredll, prefix the name with the module name and a period.
coredll is for smart devices, not desktop Windows. Therefore, this information only applies to code using the .NET Compact Framework. To see if information for terminateprocess in other DLLs exists, click on Find References to the right.
This function terminates the specified process and all of its threads. (From MSDN.)
Declare Function TerminateProcess Lib "coredll.dll" (ByVal processIdOrHandle As IntPtr, ByVal exitCode As IntPtr) As Integer
Alternative Managed API:
Do you know one? Please contribute it!
Tips & Tricks:
Obviously, you need a Process ID to kill. If you want to kill yourself (kill the current process), you'll need GetCurrentProcessId, but as GetCurrentProcessId() is an *inline* function defined in kfuncs.h in Microsoft's "Windows CE Tools" SDK, you can't call it with PInvoke. Use OpenNETCF's implementation, or read the function's inline definition from kfuncs.h and reimplement it in C#.
/* GetCurrentProcessId() and constants translated from kfuncs.h (SmartPhone2003) to C# */
The GetCurrentProcessId API
1/11/2011 8:07:24 PM - -188.8.131.52
The mechanism provided by the CLR that enables managed code to call static DLL exports.
3/16/2007 1:47:32 PM - -184.108.40.206
TODO - a short description
4/17/2009 3:17:26 PM - -220.127.116.11
Please edit this page!
Do you have...