fix group-name on netbsd
[factor/jcg.git] / vm / main-windows-nt.c
blobef66651846582b7bce8b61edc357dffd7fdb606d
1 #include <windows.h>
2 #include <stdio.h>
3 #include <shellapi.h>
4 #include "master.h"
6 int WINAPI WinMain(
7 HINSTANCE hInstance,
8 HINSTANCE hPrevInstance,
9 LPSTR lpCmdLine,
10 int nCmdShow)
12 LPWSTR *szArglist;
13 int nArgs;
15 szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
16 if(NULL == szArglist)
18 puts("CommandLineToArgvW failed");
19 return 1;
22 init_factor_from_args(NULL,nArgs,szArglist,false);
24 LocalFree(szArglist);
26 return 0;