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], *dir, *root;
25 GetModuleFileName (NULL, moddir, sizeof(moddir));
26 dir = g_path_get_dirname (moddir);
27 root = g_strconcat (dir, "/../lib", NULL);
29 mono_assembly_setrootdir (root);