#include "BiTwain.h"
int CALLBACK SetCapabilityNumEnum(DWORD dwCap, double* pdValue, DWORD cbBuf, DWORD dCurIdx, DWORD dDefIdx)
Description
This function specifies the values of the capability. You should use this function if the capability container type is TWON_ENUMERATION and type of the value is numeric.
Parameters
|
DWORD |
dwCap |
Capability ID. For example ICAP_XRESOLUTION. |
|
double* |
pdValue |
This parameter stores the values of capability array as doubles to set |
|
DWORD |
cbBuf |
Number of items in pdValue. |
|
DWORD |
dCurIdx |
The index of the current value in the enumeration to set. |
|
DWORD |
dDefIdx |
The indef of the default value in the enumeration to set. |
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.