L_GetCaptureOption

#include "l_bitmap.h"

L_INT L_GetCaptureOption(pOptions, uStructSize)

pLEADCAPTUREOPTION pOptions;

/* address of structure to be filled */

L_UINT uStructSize;

/* size in bytes, of the structure pointed to by pOptions */

Gets the current options for image capture such as HotKey, Delay, and Count.

Parameter

Description

pOptions

Pointer to the LEADCAPTUREOPTION structure to be filled with the current capture options.

uStructSize

Size in bytes, of the structure pointed to by pOptions, for versioning. Use sizeof(LEADCAPTUREOPTION).

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Use this function to get the current image capture options. For information on the default capture options, refer to LEADCAPTUREOPTION.

Required DLLs and Libraries

LTSCR

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_SetCaptureOption, L_SetCaptureOptionDlg

Example

void MyMain()
{
   LEADCAPTUREOPTION         CaptureOption;

/*To call the L_SetCaptureOption & L_GetCaptureOption
/* get current capture options */

memset(&CaptureOption, 0, sizeof(LEADCAPTUREOPTION));

    CaptureOption.uStructSize = sizeof(LEADCAPTUREOPTION);

      L_SetCaptureOption(&CaptureOption);

      /* change the hot key to F6 */
      CaptureOption.nHotKey = VK_F6;
      /* set the new options */
      L_GetCaptureOption(&CaptureOption, sizeof(LEADCAPTUREOPTION));
}