LEADTOOLS TWAIN C++ Class Library Help > Classes and Function References > LTwain > LTwain Class Members > LTwain::SetCustomDSData |
#include "ltwrappr.h"
L_INT LTwain::SetCustomDSData(pCustomData, pszFileName)
pTW_CUSTOMDSDATA pCustomData; |
/* pointer to TW_CUSTOMDSDATA structure to be filled */ |
L_TCHAR * pszFileName; |
/* file name to load data from */ |
Sets the custom data of the TWAIN data source. This feature is available in version 16 or higher.
Parameter |
Description |
pCustomData |
Pointer to a TW_CUSTOMDSDATA structure. This structure must be allocated and contains the custom data of the TWAIN data source to set. Pass NULL if you need to set the data from a file. |
pszFileName |
Character string that contains a file name for the custom data of a valid TWAIN data source to load from. Pass NULL to set the data using the pCustomData. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
To get the custom data of the TWAIN data source, call the LTwain::GetCustomDSData function.
To load the custom data of the TWAIN data source from a file, pass a valid file name to pszFileName and NULL to pCustomData.
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: |
LTwain::GetCustomDSData, LTwain::GetCapability, LTwain::SetCapability |
Topics: |
|
|
Example