Fix helper function MyEnumProcessModules()
Fix helper function MyEnumProcessModules()

Call SetErrorMode(SEM_FAILCRITICALERRORS) prior opening Psapi.dll library
to avoid GUI error messages.

Close Psapi.dll library via FreeLibrary() if symbol was not retrieved to
prevent possible memory leaks.

Try to get K32EnumProcessModules symbol from Kernel32.dll library as it is
preferred way how to call EnumProcessModules() on Windows 7 and newer
versions.

If retrieving EnumProcessModules symbol failed with both methods then do
not try it again on next MyEnumProcessModules() function call.

dlfcn-win32/dlfcn-win32,dlfcn-win32/dlfcn-win32