factor/vm/main-windows-nt.cpp

25 lines
387 B
C++
Executable File

#include "master.hpp"
int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
LPWSTR *szArglist;
int nArgs;
szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
if(NULL == szArglist)
{
puts("CommandLineToArgvW failed");
return 1;
}
factor::start_standalone_factor(nArgs,szArglist);
LocalFree(szArglist);
return 0;
}