DTWAIN_IDENTITY

Top  Previous  Next

The DTWAIN_IDENTITY data type is a pointer to the TW_IDENTITY structure described in the Twain Specification.  The TW_IDENTITY structure is as follows (as described in the TWAIN.H header file).

 

typedef struct

TW_UINT32  Id;                            /* Unique number. In Windows, application hWnd */

TW_VERSION Version;                        /* Identifies the piece of code              */

TW_UINT16  ProtocolMajor;                  /* Application and DS must set to TWON_PROTOCOLMAJOR */

TW_UINT16  ProtocolMinor;                  /* Application and DS must set to TWON_PROTOCOLMINOR */

TW_UINT32  SupportedGroups;                /* Bit field OR combination of DG_ constants */

TW_STR32   Manufacturer;                  /* Manufacturer name, e.g. "Hewlett-Packard" */

TW_STR32   ProductFamily;                  /* Product family name, e.g. "ScanJet"       */

TW_STR32   ProductName;                    /* Product name, e.g. "ScanJet Plus"         */

TW_IDENTITY;

 

The DTWAIN_IDENTITY type is used for functions such as DTWAIN_CallDSMProc.