4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-16 19:40:07 +08:00

18 lines
386 B
C++
Raw Normal View History

2009-03-18 14:46:24 +00:00
#include <windows.h>
int APIENTRY
WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
LPWSTR cmd = GetCommandLineW ();
while (*cmd)
if (*cmd != ' ' || cmd[1] != L'-' || cmd[2] != '-' || cmd[3] != ' ')
cmd++;
else
{
cmd += 4;
break;
}
if (!*cmd || !LoadLibraryExW (cmd, NULL, LOAD_WITH_ALTERED_SEARCH_PATH ))
2009-03-18 14:46:24 +00:00
ExitProcess (0x0100);
ExitProcess (0x0000);
}