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

This commit is contained in:
Alexandre Julliard 2006-02-04 17:02:05 +01:00
parent 4526997960
commit 65424dc3a8
4 changed files with 15 additions and 0 deletions

View file

@ -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;

View file

@ -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
*

View file

@ -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

View file

@ -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;