| Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. | 
L_TwainCloseTemplateFile
#include "lttwn.h"
L_LTTWN_API L_INT L_TwainCloseTemplateFile (hSession, hFile)
| HTWAINSESSION hSession; | /* handle to an existing TWAIN session */ | 
| HTWAINTEMPLATEFILE hFile; | /* handle to an existing template file */ | 
Closes the opened template 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. | 
Returns
| SUCCESS | The function was successful. | 
| ! = SUCCESS | An error occurred. Refer to Return Codes. | 
Comments
Closes and saves the template file opened by calling the L_TwainOpenTemplateFile function.
For more information on template files, refer to Handling Template Files.
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_TwainGetNumOfCapsInFile, L_TwainTemplateDlg, L_TwainInitSession, L_TwainEndSession. | 
| Topics: | |
| 
 | 
Example
For an example, refer to L_TwainAddCapabilityToFile.