Need Help with Kill Switch

Posts 1–10 of 10 · Page 1 of 1
Need Help with Kill Switch
Code:
	case DLL_PROCESS_DETACH:
		while (true)
		{
			if (GetAsyncKeyState(VK_END) & 1)
				break;
			Sleep(100);
		}
		VOID WINAPI FreeLibraryAndExitThread(
			_In_ HMODULE hModule,
			_In_ DWORD   dwExitCode
		);
	}



	return TRUE;
}

This is what I am working off but im not sure what I am getting wrong.

Any resource links or a fix would be appreciated
you never said what base but if it is ayyware (probably is)
Goto DLLMain.cpp
scroll down until you find int InitialThread(LPVOID lpArguments)
find while(DoUnload == false) above it add
if (GetAsyncKeyState(VK_END))
{
DoUnload = true;
}
ez
Not working for me

Avoz with dll main from ayyware


- - - Updated - - -

Found a fix to use a callback as a button on the menu but I am crashing when unloading

@ @hotted1135



---edit---

Fixed crash used proper exit codes


---new help---


can't reinject
Ok to unload you have to call
Hooks::UndoHooks();
Sleep(2000); // Make sure none of our hooks are running
FreeLibraryAndExitThread(HThisModule, 0); //this exits csgo lol
Quote Originally Posted by hotted1135 View Post
Ok to unload you have to call
Hooks::UndoHooks();
Sleep(2000); // Make sure none of our hooks are running
FreeLibraryAndExitThread(HThisModule, 0); //this exits csgo lol


I am using that that code

but am still unable to inject back into the game


- - - Updated - - -

you can also see in vs it has left something behind because if you try compile after ejecting it says there is a link
Im not sure how you can't inject.
FreeLibraryAndExitThread should exit csgo
then you reopen and u can inject lmao
Quote Originally Posted by hotted1135 View Post
Im not sure how you can't inject.
FreeLibraryAndExitThread should exit csgo
then you reopen and u can inject lmao
Oh lmao no, I want the dll to eject and then be able to re inject into same process
Quote Originally Posted by gYH$%U$%UJH$J View Post
Oh lmao no, I want the dll to eject and then be able to re inject into same process
Just call undohooks then when you want it back in just call the initialize hooks again
Quote Originally Posted by hotted1135 View Post
Just call undohooks then when you want it back in just call the initialize hooks again
So i call undo under my DLL_PROCESS_DETACH

where would I call the initialize again
i dont know why you are trying to make your menu detach and reattach its easier just to unload and exit then reinject when you want
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us