3 This file is part of Cygwin.
5 This software is a copyrighted work licensed under the terms of the
6 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
13 /* Allow apps which don't have a main to work, as long as they define WinMain */
17 HMODULE x
= GetModuleHandle (0);
18 char *s
= GetCommandLine ();
25 nexts
= strpbrk (s
, SP
);
27 while ((nexts
= strchr (s
+ 1, '"')) != NULL
&& nexts
[-1] == '\\')
31 nexts
= strchr (s
, '\0');
33 nexts
+= strspn (nexts
, SP
);
37 return WinMain (x
, 0, nexts
,
38 ((si
.dwFlags
& STARTF_USESHOWWINDOW
) != 0