namespace NTwain.Values
{
///
/// Contains magic number for some TWAIN stuff.
///
public static class TwainConst
{
// these are specified here since the actual
// array length doesn't reflect the name :(
///
/// Length of an array that holds TW_STR32.
///
public const int String32 = 34;
///
/// Length of an array that holds TW_STR64.
///
public const int String64 = 66;
///
/// Length of an array that holds TW_STR128.
///
public const int String128 = 130;
///
/// Length of an array that holds TW_STR255.
///
public const int String255 = 256;
// deprecated
//public const int String1024 = 1026;
///
/// Don't care value for 8 bit types.
///
public const byte DontCare8 = 0xff;
///
/// Don't care value for 16 bit types.
///
public const ushort DontCare16 = 0xffff;
///
/// Don't care value for 32 bit types.
///
public const uint DontCare32 = 0xffffffff;
///
/// The major version number of TWAIN supported by this library.
///
public const short ProtocolMajor = 2;
///
/// The minor version number of TWAIN supported by this library.
///
public const short ProtocolMinor = 3;
///
/// Value for false where applicable.
///
public const ushort True = 1;
///
/// Value for true where applicable.
///
public const ushort False = 0;
}
}