Skip to content

Instantly share code, notes, and snippets.

View thefakewater's full-sized avatar
👓

TheFakeWater thefakewater

👓
View GitHub Profile
@thefakewater
thefakewater / ManyRoblox.cpp
Created July 18, 2021 10:05
This will allows you to open multiple Roblox windows
#include <windows.h>
int main()
{
/*
* OPEN THIS BEFORE ROBLOX
* DO NOT CLOSE THIS OTHERWISE IT WILL CLOSE ALL ROBLOX PROCESSES EXCEPT ONE
*/
CreateMutexA(NULL, TRUE, "ROBLOX_singletonMutex");
while (true);
@thefakewater
thefakewater / extract.cpp
Created April 24, 2021 10:39
Extract a embed file from the current exe
// This only cover the extraction of a resource from the current exe
// Checkout https://stackoverflow.com/a/62391707/11723029
#include <Windows.h>
void extract() {
HRSRC hResource = FindResource(NULL, MAKEINTRESOURCE(IDB_EMBEDEXE), TEXT("BINARY"));
HGLOBAL hGlobal = LoadResource(NULL, hResource);
size_t exeSiz = SizeofResource(NULL, hResource); // Size of the embedded data
void* exeBuf = LockResource(hGlobal);
DWORD at;