I'm trying to make a DLL in c++ for GameMaker, it needs to change the display resolution. I'm clueless on how to do it the only way I know of is that it involves ChangeDisplaySettings() and EnumDisplaySettings() functions and the use of a structure known as DevMode. May someone please provide a working, errorless, code snippet as an example on how to do what I'm looking for? In case you are wondering I mainly work with window manipulation, so this is a big task for me to figure out via trial and error, as it is something I've never worked with.
An exported function like this would be nice:
#define DLL extern "C" _declspec(dllexport)
DLL double ChangeDisplayResolution(int width, int height)
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)