Module: wine Branch: refs/heads/master Commit: 65424dc3a85a0aa0e1a2aed62dfd8681c7ba49bb URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=65424dc3a85a0aa0e1a2aed6...
Author: Alexandre Julliard julliard@winehq.org Date: Sat Feb 4 17:02:05 2006 +0100
libwine: Added wine_dll_enum_load_path function to allow querying the dll path.
---
include/wine/library.h | 1 + libs/wine/loader.c | 12 ++++++++++++ libs/wine/wine.def | 1 + libs/wine/wine.map | 1 + 4 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/include/wine/library.h b/include/wine/library.h index d442fba..aa689c0 100644 --- a/include/wine/library.h +++ b/include/wine/library.h @@ -47,6 +47,7 @@ extern void *wine_dll_load( const char * 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 ff87d65..50ab544 100644 --- a/libs/wine/loader.c +++ b/libs/wine/loader.c @@ -492,6 +492,18 @@ void *wine_dll_load_main_exe( const char
/*********************************************************************** + * 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 * * Retrieve the name of the 32-bit owner dll for a 16-bit dll. diff --git a/libs/wine/wine.def b/libs/wine/wine.def index bea6f8a..ffd8667 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 fabd57b..b230047 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;