If you use the Print Screen button on your keyboard the screen will be copied into the clipboard.
From there you can use the TClipboard class to object it..
Also that snippet of code us using GetDC(1) instead of GetDC(0)..
It really should be using GetDesktopWindow handle and from there you get the DC from that.
But all of in, I think you may find it harder these days to get a clean shot of the Windows 10 desktop.