mscoree: Take advantage of an installed Mono for Windows to run .NET applications.

Alexandre Julliard julliard at winehq.org
Mon Dec 11 10:04:02 CST 2006


Hans Leidekker <hans at it.vu.nl> writes:

> +    memset(&si, 0, sizeof(si));
> +    si.cb = sizeof(si);
> +    if (!CreateProcessW(NULL, cmd_line, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
> +    {
> +        HeapFree(GetProcessHeap(), 0, cmd_line);
> +        return -1;
> +    }
> +
> +    if (WAIT_OBJECT_0 != WaitForSingleObject(pi.hProcess, 10000))
> +        WARN("Timed out waiting for command to start\n");

This waits for the process to end. If you really want to wait for it
to start you have to use something like WaitForInputIdle.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list