dbghelp: Implemented SymEnumerateModules64.

This commit is contained in:
Eric Pouech 2006-06-26 21:37:36 +02:00 committed by Alexandre Julliard
parent e4441d7e6f
commit 1a5f7f5926
2 changed files with 25 additions and 1 deletions

View File

@ -45,7 +45,7 @@
@ stdcall SymEnumTypes(ptr double ptr ptr)
@ stub SymEnumTypesW
@ stdcall SymEnumerateModules(long ptr ptr)
@ stub SymEnumerateModules64
@ stdcall SymEnumerateModules64(long ptr ptr)
@ stub SymEnumerateModulesW64
@ stdcall SymEnumerateSymbols(long long ptr ptr)
@ stub SymEnumerateSymbols64

View File

@ -607,6 +607,30 @@ BOOL WINAPI SymEnumerateModules(HANDLE hProcess,
return TRUE;
}
/******************************************************************
* SymEnumerateModules64 (DBGHELP.@)
*
*/
BOOL WINAPI SymEnumerateModules64(HANDLE hProcess,
PSYM_ENUMMODULES_CALLBACK64 EnumModulesCallback,
PVOID UserContext)
{
struct process* pcs = process_find_by_handle(hProcess);
struct module* module;
if (!pcs) return FALSE;
for (module = pcs->lmodules; module; module = module->next)
{
if (!(dbghelp_options & SYMOPT_WINE_WITH_ELF_MODULES) && module->type == DMT_ELF)
continue;
if (!EnumModulesCallback(module->module.ModuleName,
module->module.BaseOfImage, UserContext))
break;
}
return TRUE;
}
/******************************************************************
* EnumerateLoadedModules (DBGHELP.@)
*