3 VM_C_API int wmain(int argc, wchar_t** argv) {
4 HANDLE proc = GetCurrentProcess();
5 HANDLE thread = GetCurrentThread();
6 BOOL res = DuplicateHandle(proc, thread, proc,
7 &factor::boot_thread, GENERIC_ALL, FALSE, 0);
9 factor::fatal_error("DuplicateHandle() failed", GetLastError());
13 factor::start_standalone_factor(argc, argv);
17 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
18 LPSTR lpCmdLine, int nCmdShow) {
20 wchar_t** argv = CommandLineToArgvW(GetCommandLine(), &argc);