2007-09-20 18:09:08 -04:00
|
|
|
#include <windows.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <shellapi.h>
|
|
|
|
#include "master.h"
|
|
|
|
|
|
|
|
int WINAPI WinMain(
|
|
|
|
HINSTANCE hInstance,
|
|
|
|
HINSTANCE hPrevInstance,
|
|
|
|
LPSTR lpCmdLine,
|
|
|
|
int nCmdShow)
|
|
|
|
{
|
|
|
|
LPWSTR *szArglist;
|
|
|
|
int nArgs;
|
|
|
|
|
|
|
|
szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
|
2008-11-18 19:21:42 -05:00
|
|
|
if(NULL == szArglist)
|
2007-09-20 18:09:08 -04:00
|
|
|
{
|
2008-11-18 19:51:52 -05:00
|
|
|
puts("CommandLineToArgvW failed");
|
2007-09-20 18:09:08 -04:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2009-01-16 15:21:44 -05:00
|
|
|
start_standalone_factor(nArgs,szArglist);
|
2007-09-20 18:09:08 -04:00
|
|
|
|
|
|
|
LocalFree(szArglist);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|