/// <summary> /// DG_CONTROL / DAT_ENTRYPOINT / MSG_SET /// The TWAIN 2.0 Source Manager issues this command to Sources (that set DF_DS2) prior of any /// other command sent by the Application.In most cases it will immediately precede the call to /// DG_CONTROL / DAT_IDENTITY / MSG_OPEN. /// TWAIN 1.x Sources must continue to find and load the Source Manager DSM_Entry on /// their own. /// </summary> /// <param name="appId">This points to a TwIdentity structure.</param> /// <param name="msg">The Message of the operation triplet.</param> /// typically, a structure) that will be used according to the action specified by the operation /// triplet.</param> /// <returns>TWAIN Return Codes.</returns> private TwRC _EntryPointControlProcessRequest(TwIdentity appId, TwMSG msg, TwEntryPoint entry) { switch (msg) { case TwMSG.Set: DataSourceServices.Memory._SetEntryPoints(entry); this._dsmEntries.Add(appId.Id, _DsmEntry.Create(entry.DSM_Entry)); return(TwRC.Success); } throw new DataSourceException(TwRC.Failure, TwCC.BadProtocol); }
/// <summary> /// Устаначливает точки входа. /// </summary> /// <param name="entry">Точки входа.</param> internal static void _SetEntryPoints(TwEntryPoint entry) { Memory._entryPoint = entry; }