I’ve been playing a big with the DC obtained with CreateDC(L"DISPLAY",NULL,NULL,NULL) and I’ve been wondering why does windows let you draw on the whole screen that easily, cause I think you could do some pretty evil stuff with that like putting a TIMER at 1ms and drawing a black rectangle on the whole screen every time the timer ticks.
I’ve been playing a big with the DC obtained with CreateDC(LDISPLAY,NULL,NULL,NULL) and I’ve been
Share
The fact that you could do some pretty evil stuff doesn’t mean windows shouldn’t let you do it. Just think of all the other evil things you could do:
Just because you CAN do those things doesn’t mean windows should prevent you from writing to the hard drive or allocating memory or deleting files.
The purpose of Windows is to provide an environment in which programs can run. The more flexible they make that environment, the more interesting (and, unfortunately, devious) programs it makes possible for developers to create.
If they started putting in arbitrary restrictions on what you can do because you might abuse it… well, then it wouldn’t be windows, it would be an iPhone 🙂