#include "BiTwain.h"
int CALLBACK EnumDataSources(LPSTR szSources, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcbReturned)
Description
This function retrieves the list of available data sources on the system. The data source name is stored in TW_STR32. For example there are 5 DSs on the system, you should have 5*sizeof(TW_STR32) bytes for retrieves the name of DSs. If the length of the szSources is too small, pcbReturned will be 0 and pcbNeeded will contain the size required.
Parameters
|
LPSTR |
szSources |
Contains the name of data sources. |
|
DWORD |
cbBuf |
Leght in bytes of the szSources. |
|
LPDWORD |
pcbNeeded |
Legth in bytes of szSources required. |
|
LPDWORD |
pcbReturned |
Number of data sources received in szSources parameter. |
Return values
Returns TW_OK on success, otherwise the error code.
Requirements
Header : Declared in BiTwain.h; include BiTwain.h.
Library : Use BiTwain.lib.
DLLs : BiTwain.dll.