mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
16 lines
493 B
C#
16 lines
493 B
C#
using NTwain.Data;
|
|
using NTwain.Internals;
|
|
|
|
namespace NTwain.Triplets
|
|
{
|
|
sealed class Callback2 : BaseTriplet
|
|
{
|
|
internal Callback2(TwainSession session) : base(session) { }
|
|
|
|
public ReturnCode RegisterCallback(ref TW_CALLBACK2 callback)
|
|
{
|
|
return NativeMethods.DsmWin32(Session.Config.AppWin32, Session.CurrentSource.Identity,
|
|
DataGroups.Control, DataArgumentType.Callback2, Message.RegisterCallback, ref callback);
|
|
}
|
|
}
|
|
} |