Commit 65424dc3 authored by Alexandre Julliard's avatar Alexandre Julliard

libwine: Added wine_dll_enum_load_path function to allow querying the dll path.

parent 45269979
...@@ -47,6 +47,7 @@ extern void *wine_dll_load( const char *filename, char *error, int errorsize, in ...@@ -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, extern void *wine_dll_load_main_exe( const char *name, char *error, int errorsize,
int test_only, int *file_exists ); int test_only, int *file_exists );
extern void wine_dll_unload( void *handle ); 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_dll_get_owner( const char *name, char *buffer, int size, int *file_exists );
extern int __wine_main_argc; extern int __wine_main_argc;
......
...@@ -492,6 +492,18 @@ void *wine_dll_load_main_exe( const char *name, char *error, int errorsize, ...@@ -492,6 +492,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 * wine_dll_get_owner
* *
* Retrieve the name of the 32-bit owner dll for a 16-bit dll. * Retrieve the name of the 32-bit owner dll for a 16-bit dll.
......
...@@ -16,6 +16,7 @@ EXPORTS ...@@ -16,6 +16,7 @@ EXPORTS
wine_dbgstr_an wine_dbgstr_an
wine_dbgstr_wn wine_dbgstr_wn
wine_dlclose wine_dlclose
wine_dll_enum_load_path;
wine_dll_get_owner wine_dll_get_owner
wine_dll_load wine_dll_load
wine_dll_load_main_exe wine_dll_load_main_exe
......
...@@ -16,6 +16,7 @@ WINE_1.0 ...@@ -16,6 +16,7 @@ WINE_1.0
wine_dbgstr_an; wine_dbgstr_an;
wine_dbgstr_wn; wine_dbgstr_wn;
wine_dlclose; wine_dlclose;
wine_dll_enum_load_path;
wine_dll_get_owner; wine_dll_get_owner;
wine_dll_load; wine_dll_load;
wine_dll_load_main_exe; wine_dll_load_main_exe;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment