diff --git a/include/wine/library.h b/include/wine/library.h index d442fba5f2b..aa689c022d2 100644 --- a/include/wine/library.h +++ b/include/wine/library.h @@ -47,6 +47,7 @@ extern void *wine_dll_load( const char *filename, char *error, int errorsize, in extern void *wine_dll_load_main_exe( const char *name, char *error, int errorsize, int test_only, int *file_exists ); extern void wine_dll_unload( void *handle ); +extern const char *wine_dll_enum_load_path( unsigned int index ); extern int wine_dll_get_owner( const char *name, char *buffer, int size, int *file_exists ); extern int __wine_main_argc; diff --git a/libs/wine/loader.c b/libs/wine/loader.c index ff87d655dd0..50ab544d6c1 100644 --- a/libs/wine/loader.c +++ b/libs/wine/loader.c @@ -491,6 +491,18 @@ void *wine_dll_load_main_exe( const char *name, char *error, int errorsize, } +/*********************************************************************** + * wine_dll_enum_load_path + * + * Enumerate the dll load path. + */ +const char *wine_dll_enum_load_path( unsigned int index ) +{ + if (index >= nb_dll_paths) return NULL; + return dll_paths[index]; +} + + /*********************************************************************** * wine_dll_get_owner * diff --git a/libs/wine/wine.def b/libs/wine/wine.def index bea6f8a17de..ffd866716db 100644 --- a/libs/wine/wine.def +++ b/libs/wine/wine.def @@ -16,6 +16,7 @@ EXPORTS wine_dbgstr_an wine_dbgstr_wn wine_dlclose + wine_dll_enum_load_path; wine_dll_get_owner wine_dll_load wine_dll_load_main_exe diff --git a/libs/wine/wine.map b/libs/wine/wine.map index fabd57b320c..b2300474695 100644 --- a/libs/wine/wine.map +++ b/libs/wine/wine.map @@ -16,6 +16,7 @@ WINE_1.0 wine_dbgstr_an; wine_dbgstr_wn; wine_dlclose; + wine_dll_enum_load_path; wine_dll_get_owner; wine_dll_load; wine_dll_load_main_exe;