L_TwainGetNumOfCapsInFile

Summary

Gets the number of stored capabilities from the specified file.

Syntax

#include "lttwn.h"

L_LTTWN_API L_INT L_TwainGetNumOfCapsInFile (hSession, hFile, puCapCount)

Parameters

HTWAINSESSION hSession

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

HTWAINTEMPLATEFILE hFile

Handle to an existing template file.

L_UINT *puCapCount

Pointer to a variable to be updated with the number of capabilities in the specified file.

Returns

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

Comments

The template file must be opened for reading by calling L_TwainOpenTemplateFile function.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_TwainGetCapabilityFromFile.

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.