Skip to content

REF-041 - Move Remaining Active App DLL Probes To LoadLibraryEx

Summary

The remaining active app LoadLibrary call sites were converted to LoadLibraryEx with call-site-specific search policy. Optional external DLL loads had already been hardened under REF-038, REF-039, and REF-040.

Outcome

  • Language DLLs keep the existing version check and fallback order, but now load the explicit prepared path with LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR and LOAD_LIBRARY_SEARCH_DEFAULT_DIRS.
  • The wmvcore.dll Windows Media metadata probe now loads from System32 only with LOAD_LIBRARY_SEARCH_SYSTEM32.
  • Active eMule-main app code no longer has live LoadLibrary( call sites.

Acceptance

  • [x] Language DLL lookup behavior remains version-gated and path-ordered.
  • [x] wmvcore.dll remains optional and system-scoped.
  • [x] Active app LoadLibrary audit has no remaining live code hits.