Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _ROBLOX_PRECOMPILED_HEADER_
- #define _ROBLOX_PRECOMPILED_HEADER_
- #include <Windows.h>
- #include <iostream>
- bool ChangeApplicationText(LPSTR WindowName, LPSTR Text)
- {
- DWORD AppPID;
- GetWindowThreadProcessId((HWND)FindWindowA(NULL, WindowName), &AppPID);
- SetWindowTextA((HWND)FindWindowA(NULL, WindowName), Text);
- return true;
- }
- void BypassFreeConsoleHook(DWORD perms)
- {
- DWORD AppPID;
- DWORD OldProtection;
- GetWindowThreadProcessId((HWND)FindWindowA(NULL, "Roblox"), &AppPID);
- VirtualProtect(&FreeConsole, sizeof(DWORD), PAGE_EXECUTE_READWRITE, &OldProtection);
- WriteProcessMemory(OpenProcess(perms, true, AppPID), &FreeConsole, (LPCVOID)0xC3, sizeof(DWORD), 0);
- VirtualProtect(&FreeConsole, sizeof(DWORD), OldProtection, &OldProtection);
- AllocConsole();
- freopen("CONIN$", "r", stdin);
- freopen("CONOUT$", "w", stdout);
- return;
- }
- // -||- ROBLOX Context Changer -||- \\
- #define ChangeContext(Contextaddr, value) *(int*)Contextaddr = value
- // -- [Credits[ -- \\
- /*
- KingEzz - Main Coder
- Mysertruouss - a Gay Fat Fuck! He is gay as hell and is homo as fuck for me!
- mi-sir-trow-sss
- */
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement