Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <iostream>
- int main() {
- HANDLE mutexHandle = CreateMutexA(NULL, TRUE, "ROBLOX_singletonMutex");
- if (mutexHandle == NULL) {
- std::cerr << "Failed to create mutex. Error: " << GetLastError() << std::endl;
- return 1;
- }
- std::cout << "Multiple Roblox instances allowed! Press Enter to exit." << std::endl;
- std::cin.get();
- CloseHandle(mutexHandle);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement