L_TwainCreateNumericContainerOneValue

Summary

Allocates the hContainer member of the TW_CAPABILITY structure to be type TW_ONEVALUE and fills it with the appropriate data.

Syntax

#include "lttwn.h"

L_LTTWN_API L_INT L_TwainCreateNumericContainerOneValue (pCapability, Type, uValue)

Parameters

TW_CAPABILITY * pCapability

Pointer to a structure that contains the capability container to allocate as type TW_ONEVALUE.

LTWAINNUMERICTYPE Type

Type of data contained in the TW_ONEVALUE container. For a list of possible values, refer to LTWAINNUMERICTYPE.

L_UINT_PTR uValue

Value of the TW_ONEVALUE structure.

Returns

Value Meaning
SUCCESS The function was successful.
! = SUCCESS An error occurred. Refer to Return Codes.

Comments

When enumerating and getting capabilities, the toolkit takes care of creating the necessary TW_CAPABILITY containers. However, if the user wants to set a capability using the L_TwainSetCapability function, he or she must declare a TW_CAPABILITY container of the appropriate type (TW_ARRAY, TW_ENUMERATION, TW_RANGE, or TW_ONEVALUE).

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_TwainAcquire.

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS TWAIN C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.