1 /***********************************************************************/
5 /* Xavier Leroy and Pascal Cuoq, projet Cristal, INRIA Rocquencourt */
7 /* Copyright 1996 Institut National de Recherche en Informatique et */
8 /* en Automatique. All rights reserved. This file is distributed */
9 /* under the terms of the GNU Library General Public License, with */
10 /* the special exception on linking described in file ../../LICENSE. */
12 /***********************************************************************/
18 #include "unixsupport.h"
19 #include "winworker.h"
24 CAMLprim value win_startup(unit)
33 (void) WSAStartup(MAKEWORD(2, 0), &wsaData);
34 DuplicateHandle(GetCurrentProcess(), GetCurrentProcess(),
35 GetCurrentProcess(), &h, 0, TRUE,
36 DUPLICATE_SAME_ACCESS);
37 val_process_id = Val_int(h);
44 CAMLprim value win_cleanup(unit)