mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 01:58:31 +00:00

As the --timeout option for Wesnoth can stall the process, we replace it by an encapsulation comparable to the Unix timeout function. WindowsTimeout isn't limited to Wesnoth, it can in fact set a timeout for any executable called through it. An example on the use of these WinAPI functions can be found on http://msdn.microsoft.com/en-us/library/windows/desktop/ms682512.aspx