]> sourceware.org Git - newlib-cygwin.git/blob - winsup/utils/ldh.cc
Cygwin: add 3.2.1 release file and add fixes up to this point
[newlib-cygwin.git] / winsup / utils / ldh.cc
1 #include <windows.h>
2 int APIENTRY
3 WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
4 {
5 LPWSTR cmd = GetCommandLineW ();
6 while (*cmd)
7 if (*cmd != ' ' || cmd[1] != L'-' || cmd[2] != '-' || cmd[3] != ' ')
8 cmd++;
9 else
10 {
11 cmd += 4;
12 break;
13 }
14 if (!*cmd || !LoadLibraryExW (cmd, NULL, LOAD_WITH_ALTERED_SEARCH_PATH ))
15 ExitProcess (0x0100);
16 ExitProcess (0x0000);
17 }
This page took 0.033849 seconds and 5 git commands to generate.