private static extern ReturnCodes DataSourceImageInfo(
     [In, Out] Identity origin,
     [In] Identity destination,
     DataGroups dataGroup,
     DataAttributeTypes dataAttributeType,
     Messages message,
     [In, Out] ImageInfoInterop imageInfo);
 /// <summary>
 /// Receives infos about images ready for transferation
 /// </summary>
 /// <param name="applicationIdentity">Identity of the application</param>
 /// <param name="dataSourceIdentity">Identity of the datasource</param>
 /// <param name="imageInfo"></param>
 /// <returns>Reply of the twaindriver</returns>
 internal static ReturnCodes GetImageInfo(
     Identity applicationIdentity,
     Identity dataSourceIdentity,
     ref ImageInfoInterop imageInfo)
 {
     return(DataSourceImageInfo(
                applicationIdentity,
                dataSourceIdentity,
                DataGroups.Image,
                DataAttributeTypes.ImageInfo,
                Messages.Get,
                imageInfo));
 }
 /// <summary>
 /// Constructor taking datasourcemanager of the current session and the datasource from which to auqire
 /// </summary>
 /// <param name="dataSourceManager"></param>
 /// <param name="dataSource"></param>
 internal ImageInfo(DataSourceManager dataSourceManager, DataSource dataSource)
 {
     this.dataSourceManager = dataSourceManager;
     this.dataSource        = dataSource;
     this.interopStruct     = new ImageInfoInterop();
 }