I made a generic tool/application to terminate the foreground window on windows systems. It is written in c++. It uses functions from windows.h:
HWND foo = GetForegroundWindow();
GetWindowText(foo,title,sizeof(title)); // never used.
DWORD pid;
GetWindowThreadProcessId( foo, &pid );
HANDLE handle = OpenProcess( PROCESS_TERMINATE, FALSE, pid);
TerminateProcess( handle, -5 );
...
CloseHandle( handle );
I bought a PUBG software gaming license while it was on early access. It kept crashing and freezing – and sometimes the most latest frame would be staying on top (while the game is crashed/frozen) making task manager dangerous.
So I wrote that tool to listen to a certain key-combination which would then terminate the foreground window in case it's stuck. It worked like a charm.
However I got banned from PUBG 20 days ago and haven't really been given any clear reason besides that I violated the terms and services and that they have proof of it.
Now the PUBG EULA states following:
You agree to only use the Game Software, or any part of it, in a manner that is consistent with this License and you SHALL NOT:
...
(f) reverse engineer, derive source code, modify, decompile, disassemble, or create derivative works of the Game Software, in whole or in part (except as the applicable law expressly permits, in which case all and any lawful modifications, adaptations, improvements, etc., and all copyrights and morale rights therein, shall be deemed assigned to, and shall belong to, vest in and be the exclusive property of Bluehole and/or its licensors on creation, in any event);
(g) remove, disable or circumvent any security protections or any technical measures that control access to the Game Software;
(h) remove, modify, deface or circumvent any proprietary notices or labels contained on or within the Game Software;
(i) export or re-export the Game Software or any copy or adaptation in violation of any applicable laws or regulations; or
(j) create data or executable programs that mimic data or functionality in the Game Software.
Does the software tool I describe above violate the letter of the EULA?
E.g., I'm curious on whether I did "modify" the game software? I believe asking windows to shut the application down isn't really modifying it.
Or did I "remove, modify or circumvent any security protections or any technical measures that control access to the game software?" That seems pretty vague since an end user doesn't really know anything about their security protections, etc.