Live++ Forums
Hot patching for DLLs loaded via Windows API - Printable Version

+- Live++ Forums (https://liveplusplus.tech/forums)
+-- Forum: Live++ (https://liveplusplus.tech/forums/forum-1.html)
+--- Forum: Technical issues (https://liveplusplus.tech/forums/forum-6.html)
+--- Thread: Hot patching for DLLs loaded via Windows API (/thread-8.html)



Hot patching for DLLs loaded via Windows API - mpt - 06-30-2020

I am having trouble hot patching DLLs loaded via the Windows API.

The project consists of several DLLs and an executable. SomeĀ are lazyly loaded via the Windows API, e.g. LoadLibraryA("project.dll").

Live++ works well for the directly linked DLLs but will not detect code changes to the run-time loaded DLLs. Can Live++ handle this? What is needed to make this work?


RE: Hot patching for DLLs loaded via Windows API - Stefan Reinalter - 06-30-2020

You have to enable Live++ for modules loaded at runtime using the available APIs:
https://liveplusplus.tech/docs/documentation.html#enabling_livepp

Alternatively, if you are in control of those DLLs, they can enable Live++ on themselves via the API in e.g. a DLL startup function.