GetCurrentDS

#include "BiTwain.h"

 

int CALLBACK GetCurrentDS(LPSTR szSource, DWORD cbBuf, LPDWORD pcbNeeded)

Description

This function retrieves the name of the current data source. If the length of the szSource is too small, pcbNeeded will contain the size required.

Parameters

LPSTR

szSource

Contains the name of the current data source.

DWORD

cbBuf

Leght in bytes of the szSource.

LPDWORD

pcbNeeded

Legth in bytes of szSource required.

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.