L_TwainFreeScanConfig

Summary

Frees storage allocated for a scan configuration array.

Syntax

#include "lttwn.h"

L_LTTWN_API L_INT L_TwainFreeScanConfig(hSession, ppFastConfig, nFastConfigCount)

Parameters

HTWAINSESSION hSession

Handle to an existing TWAIN session. This handle is obtained by calling the L_TwainInitSession or L_TwainInitSession2 function.

pFASTCONFIG *ppFastConfig

Address of the pointer to the array of FASTCONFIG structures. This function will free the array of FASTCONFIG structures allocated by L_TwainFindFastConfig and L_TwainGetScanConfigs.

L_INT nFastConfigCount

Number of array elements to free.

Returns

Value Meaning
SUCCESS The function was successful.
! = SUCCESS An error occurred. Refer to Return Codes.

Comments

Call this function to free the memory allocated by the L_TwainFindFastConfig and L_TwainGetScanConfigs functions.

This function should be called when your program no longer needs the array of FASTCONFIG structures.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_TwainFindFastConfig.

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS TWAIN C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.