ExitProcess (kernel32)
Last changed: bojan.saksida@volja.net-213.172.243.65

.
Summary

C# Signature:

[DllImport("kernel32.dll")]
static extern void ExitProcess(uint uExitCode);

User-Defined Types:

None.

Notes:

This API is dangerous and you should avoid using it. See MSDN docs for details.

Tips & Tricks:

It is not clear what the uExitCode does. It didn't seem to change the code sent when my program exited. (Same is true of the managed version, below.)

Please add some more Tips!

Sample Code:

Please add some!

Alternative Managed API:

static void System.Environment.Exit(int exitCode);

Documentation
ExitProcess on MSDN