repo.or.cz
/
factor
/
jcg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad...
[factor/jcg.git]
/
vm
/
main-windows-nt.c
blob
6552e88bedf38407af9bc2d85075c79fc5bb2638
1
#include <windows.h>
2
#include <stdio.h>
3
#include <shellapi.h>
4
#include
"master.h"
5
6
int
WINAPI
WinMain
(
7
HINSTANCE hInstance
,
8
HINSTANCE hPrevInstance
,
9
LPSTR lpCmdLine
,
10
int
nCmdShow
)
11
{
12
LPWSTR
*
szArglist
;
13
int
nArgs
;
14
15
szArglist
=
CommandLineToArgvW
(
GetCommandLineW
(), &
nArgs
);
16
if
(
NULL
==
szArglist
)
17
{
18
puts
(
"CommandLineToArgvW failed"
);
19
return
1
;
20
}
21
22
start_standalone_factor
(
nArgs
,
szArglist
);
23
24
LocalFree
(
szArglist
);
25
26
return
0
;
27
}