GetSystemDefaultDS

#include "BiTwain.h"

 

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

Description

This function retrieves the name of the default data source on the system. If cbBuf is too small, the pcbNeeded will contain the length in bytes of szSource required.

Parameters

LPSTR

szSource

Contains the name of the system default DS.

DWORD

cbBuf

Length in bytes of the szSource.

LPDWORD

pcbNeeded

Length 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.