Well, I didn't men wallpaper, i meant everything you see on the screen.
On Delphi i've done it this way:
Class Procedure TMuzzyServer.getScreen( ABitmap : TBitmap );
Var
dc : Integer;
srect : TRect;
scanvas : TCanvas;
Begin
// get desktop HDC
dc := GetWindowDC(0);
// Create a rectangle with screen size
srect := Rect(0, 0, Screen.Width, Screen.Height);
// Create a canvas for desktop HDC
scanvas := TCanvas.Create();
scanvas.Handle := dc;
ABitmap.Height := srect.Bottom;
ABitmap.Width := srect.Right;
ABitmap.Canvas.CopyRect(srect, scanvas, srect);
ReleaseDC(0, dc);
scanvas.Free;
End;
/////
So i obtained HDC of desktop window which has HANDLE = 0, and then played
around.
How do i do in .NET?
Thank you,
Andrey