Back to Browse

how to capture desktop window | Visual Basic Tutorial

271 views
Jun 16, 2021
9:33

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.

Download

1 formats

Video Formats

360pmp415.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

how to capture desktop window | Visual Basic Tutorial | NatokHD