LEADCAPTUREINFO

typedef struct tagLEADCAPTUREINFO
{
   L_UINT uStructSize;
   HWND hWnd; 
   RECT rcArea;
   L_INT nResType; 
   L_INT nIndex; 
   LPTSTR pszResID;
   L_TCHAR szReserved[256]; 
   LPTSTR pszExeName; 
   L_INT nMaxExeName; 
} LEADCAPTUREINFO, * pLEADCAPTUREINFO;

This structure is used by the capture functions to return information about the capture that took place.

Member

Description

uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() macro to calculate this value.

hWnd

Handle to window being captured. This will be filled by all of the capture functions, with the handle to the window that was captured.

rcArea

Area being captured. This will be filled by all of the capture functions, with the bounding rectangle of the area that was captured. The coordinates should be relative to the full screen, left, top being 0,0.

nResType

Resource type. In the case of an EXE capture, this will be filled with the type of resource that was captured. Possible values are:

 

RESTYPE_BITMAP

Capture a bitmap resource

 

RESTYPE_ICON

Capture an icon resource

 

RESTYPE_CURSOR

Capture a cursor resource

nIndex

Index of the resource that was captured. In the case of an EXE capture, this will be filled with the index of the resource that was captured. In this toolkit, resource indices will begin at 0.

pszResID

Character string containing the resource ID.

szReserved

Reserved.

pszExeName

Character string to be filled with the name of the EXE from which L_CaptureFromEXEDlg captured a resource.

nMaxExeName

Maximum length of the pszExeName buffer.