internal static extern TwRC DSevent([In, Out] TwIdentity origin, [In, Out] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, ref TwEvent evt);
private TwRC DSevent(TwIdentity origin, TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, ref TwEvent evt) { if (IntPtr.Size == 8) { return(Twain64.DSevent(origin, dest, dg, dat, msg, ref evt)); } else { return(Twain32.DSevent(origin, dest, dg, dat, msg, ref evt)); } }