#include "BiTwain.h"
int CALLBACK GetCapabilityRange(DWORD dwCap, int iMsg, double* lMinValue, double* lMaxValue, double* lStep, double* lCurrValue, double* lDefValue)
Description
This function retrieves the values of the capability. You should use this function if the capability container type is TWON_RANGE.
Parameters
|
DWORD |
dwCap |
Capability ID. For example ICAP_BRIGHTNESS |
|
Int |
IMsg |
MSG_GET, MSG_GETCURRENT or MSG_GETDEFAULT |
|
double* |
lMinValue |
Minimum value of the range. |
|
double* |
lMaxValue |
Maximum value of the range. |
|
double* |
lStep |
Differention between two neighbouring value in the range. |
|
double* |
lCurrValue |
Current value of the specified capability. |
|
double* |
lDefValue |
Default value of the specified capability. |
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.