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.
Select Windows Ink Workspace from the taskbar to open it. From here, you can select Whiteboard or Fullscreen Snip. (You can also select More and Learn more about pen or access Pen settings .) Tip: Press the top button on your pen once to quickly open Microsoft Whiteboard, or double-press it to open Snip & Sketch.
Head to the sketchpad or screen sketch within the Windows Ink Workspace and click on the ruler icon in the upper right-hand corner of the toolbar. Then, adjust the digital ruler and with your pen (or finger, if you click on the “touch writing” icon) to draw sharp lines along the edge.
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With