Zhiyi Zhang (@zhiyi) commented about dlls/user32/tests/monitor.c:
EnumDisplayMonitors(NULL, NULL, MonitorEnumProc, 0);
return;
if (strcmp(myARGV[2], "info") == 0)
{
printf("Monitor information:\n");
EnumDisplayMonitors(NULL, NULL, MonitorEnumProc, 0);
return;
}
else if (strcmp(myARGV[2], "fullscreen") == 0)
{
HANDLE event0, event1;
DWORD wait_result;
DEVMODEA dm;
LONG res;
if (myARGC < 6)
Place the following code into a helper so it remains clean in the main function.