6 /*CAMLextern int __argc; */
7 /* CAMLextern char **__argv; */
8 /* CAMLextern void caml_expand_command_line(int * argcp, char *** argvp); */
9 /* extern void caml_main (char **); */
11 int WINAPI WinMain(HINSTANCE h, HINSTANCE HPrevInstance,
12 LPSTR lpCmdLine, int nCmdShow)
17 GetModuleFileName(NULL, exe_name, sizeof(exe_name) - 1);
18 exe_name[sizeof(exe_name) - 1] = '0';