CaptureEXEDlg Example for Visual Basic
'display CaptureExe Dialog
LEADRasterScr1.CaptureEXEDlg hWnd, 0, "c:\windows\calc.exe", SCR_CAP_ALL, SCR_CAP_EXEDLG_TREEVIEW
'copy the captured image to a Main Control
LEADRasterView1.Raster.Bitmap = LEADRasterScr1.Bitmap
'display results
Text1.Text = CStr(LEADRasterScr1.CaptureInfoResType)
Text2.Text = CStr(LEADRasterScr1.CaptureInfoResIndex)
Text3.Text = CStr(LEADRasterScr1.CaptureInfoResourceId)
Text4.Text = LEADRasterScr1.CaptureInfoExeName