L_TwainGetNumOfCapsInFile

#include "lttw2.h"

L_INT EXT_FUNCTION L_TwainGetNumOfCapsInFile (hSession, hFile, puCapCount)

HTWAINSESSION hSession;

/* handle to an existing TWAIN session */

HTWAINTEMPLATEFILE hFile;

/* handle to an existing template file */

L_UINT *puCapCount;

/* pointer to a variable */

Gets the number of stored capabilities from the specified file.

Parameter

Description

hSession

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

hFile

Handle to an existing template file.

puCapCount

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

Returns

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

LTTWN

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_TwainOpenTemplateFile, L_TwainAddCapabilityToFile, L_TwainGetCapabilityFromFile, L_TwainTemplateDlg, L_TwainCloseTemplateFile, L_TwainInitSession.

Topics:

Handling Template Files

 

TWAIN Functionality: Capability Functions.

Example

For an example, refer to L_TwainGetCapabilityFromFile.