diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 886eb427d69..c79b5d70c4d 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -803,6 +803,7 @@ @ stdcall K32EnumPageFilesA(ptr ptr) @ stdcall K32EnumPageFilesW(ptr ptr) @ stdcall K32EnumProcessModules(long ptr long ptr) +@ stdcall K32EnumProcessModulesEx(long ptr long ptr long) @ stdcall K32EnumProcesses(ptr long ptr) @ stdcall K32GetDeviceDriverBaseNameA(ptr ptr long) @ stdcall K32GetDeviceDriverBaseNameW(ptr ptr long) diff --git a/dlls/kernel32/module.c b/dlls/kernel32/module.c index ca4cf41ff5e..2a87e660f86 100644 --- a/dlls/kernel32/module.c +++ b/dlls/kernel32/module.c @@ -1246,6 +1246,20 @@ BOOL WINAPI K32EnumProcessModules(HANDLE process, HMODULE *lphModule, return ret == 0; } +/*********************************************************************** + * K32EnumProcessModulesEx (KERNEL32.@) + * + * NOTES + * Returned list is in load order. + */ +BOOL WINAPI K32EnumProcessModulesEx(HANDLE process, HMODULE *lphModule, + DWORD cb, DWORD *needed, DWORD filter) +{ + FIXME("(%p, %p, %d, %p, %d) semi-stub\n", + process, lphModule, cb, needed, filter); + return K32EnumProcessModules(process, lphModule, cb, needed); +} + /*********************************************************************** * K32GetModuleBaseNameW (KERNEL32.@) */ diff --git a/dlls/psapi/psapi.spec b/dlls/psapi/psapi.spec index 45a13250a23..d6116f8c647 100644 --- a/dlls/psapi/psapi.spec +++ b/dlls/psapi/psapi.spec @@ -3,6 +3,7 @@ @ stdcall EnumPageFilesA(ptr ptr) kernel32.K32EnumPageFilesA @ stdcall EnumPageFilesW(ptr ptr) kernel32.K32EnumPageFilesW @ stdcall EnumProcessModules(long ptr long ptr) kernel32.K32EnumProcessModules +@ stdcall EnumProcessModulesEx(long ptr long ptr long) kernel32.K32EnumProcessModulesEx @ stdcall EnumProcesses(ptr long ptr) kernel32.K32EnumProcesses @ stdcall GetDeviceDriverBaseNameA(ptr ptr long) kernel32.K32GetDeviceDriverBaseNameA @ stdcall GetDeviceDriverBaseNameW(ptr ptr long) kernel32.K32GetDeviceDriverBaseNameW diff --git a/include/psapi.h b/include/psapi.h index f0317241d31..fbdd9030752 100644 --- a/include/psapi.h +++ b/include/psapi.h @@ -81,6 +81,7 @@ extern "C" { BOOL WINAPI EnumProcesses(DWORD*, DWORD, DWORD*); BOOL WINAPI EnumProcessModules(HANDLE, HMODULE*, DWORD, LPDWORD); +BOOL WINAPI EnumProcessModulesEx(HANDLE, HMODULE*, DWORD, LPDWORD, DWORD); DWORD WINAPI GetModuleBaseNameA(HANDLE, HMODULE, LPSTR, DWORD); DWORD WINAPI GetModuleBaseNameW(HANDLE, HMODULE, LPWSTR, DWORD); #define GetModuleBaseName WINELIB_NAME_AW(GetModuleBaseName)