SetCapabilityOneNumValue

#include "BiTwain.h"

 

int CALLBACK SetCapabilityOneNumValue(DWORD dwCap, int iMsg, float fValue)

Description

This function specifies the value of the capability. You should use this function if the capability container type is TWON_ONEVALUE and type of the value is numeric.

Parameters

DWORD

dwCap

Capability ID. For example ICAP_XRESOLUTION.

Int

IMsg

MSG_SET or MSG_RESET

float

fValue

Value of the capability 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.