win32api.PostQuitMessage

PostQuitMessage(exitCode)

Post a quit message to an app.

Parameters

exitCode=0 : int

The exit code

Win32 API References

Search for PostQuitMessage at msdn, google or google groups.