In this video session we will learn about three API's
1. GetDesktopWindow
2. GetDC
3. BitBlt
Form above the first two API's are part of "user32" library file and the third one is defined in "gdi32" library. We have to use all these API's in our visual basic application.
First of all we have to get handler to the desktop window, This can be taken using GetDesktopWindow API. GetDesktopWindow does not take any parameter. Whenever it will call, it should return the handler to desktop. After getting handler we will get working area of desktop window using GetDC API. GetDC API takes one parameter of windows handler.
Finally we will paint the entire desktop screen on the windows form using BitBlt API.