I want to create a dll that will unload it myself in case of some condifiton, which means
BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { if (ul_reason_for_call==DLL_PROCESS_ATTACH) if (!CheckSomething())
I tried, but I could not get it to work. if there is any walk on an alternative solution. please tell me, I donβt need the process that the DLL attached to unload it, I want it to unload it myself.
source share