How to disable the full screen of another program?

1

For example, a game that is full screen (with full screen does not mean maximized, but "fullscreen same"). How do I get into windowed mode with C ++?

I've tried using "SendMessage":

#include <windows.h>
int main()
{
    while (true)
    {
        if (GetAsyncKeyState(88))
        {
            HWND hWnd = GetActiveWindow();
            SendMessageA(hWnd, WM_SYSCOMMAND, SC_RESTORE, 0);
        }
    }
}

But it did not work.

    
asked by anonymous 28.12.2016 / 03:29

0 answers