2 * util.c: Simple runtime tools for the Win32 platform
7 * (C) 2002 Ximian, Inc. (http://www.ximian.com)
11 #include <mono/metadata/metadata.h>
12 #include <mono/os/util.h>
17 * Informs the runtime of the root directory for the Mono installation,
21 mono_set_rootdir (void)
23 char moddir[MAXPATHLEN], *bindir, *installdir, *root;
25 GetModuleFileName (NULL, moddir, sizeof(moddir));
26 bindir = g_path_get_dirname (moddir);
27 installdir = g_path_get_dirname (bindir);
28 root = g_build_path (G_DIR_SEPARATOR_S, installdir, "lib", NULL);
30 mono_assembly_setrootdir (root);