Skip to content

Instantly share code, notes, and snippets.

@weitzhandler
weitzhandler / ResolutionChanger.cpp
Last active May 14, 2020 14:18
Toggle ultrawide resolution
#include <windows.h>
typedef DWORD PELS_WIDTH;
const PELS_WIDTH Wide = 3440;
const PELS_WIDTH Narrow = 2560;
int __cdecl main()
{
DEVMODEA dm;