2009-03-18 22:46:24 +08: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;
|
|
|
|
}
|
2010-08-28 20:12:53 +08:00
|
|
|
if (!*cmd || !LoadLibraryExW (cmd, NULL, LOAD_WITH_ALTERED_SEARCH_PATH ))
|
2009-03-18 22:46:24 +08:00
|
|
|
ExitProcess (0x0100);
|
|
|
|
ExitProcess (0x0000);
|
|
|
|
}
|