Esempio n. 1
0
        public twain()
        {
            appid    = new twainDefs.TwIdentity();
            appid.Id = IntPtr.Zero;
            appid.Version.MajorNum = 1;
            appid.Version.MinorNum = 1;
            appid.Version.Language = LanguageCHINESE;
            appid.Version.Country  = CountryUSA;
            appid.Version.Info     = "Version 2.0";
            appid.ProtocolMajor    = twainDefs.TwProtocol.Major;
            appid.ProtocolMinor    = twainDefs.TwProtocol.Minor;
            appid.SupportedGroups  = (int)(twainDefs.TwDG.Image | twainDefs.TwDG.Control);
            appid.Manufacturer     = "PBSoftware";
            appid.ProductFamily    = "InfinityPOS";
            appid.ProductName      = "PBSoftware TWAIN";

            srcds = new twainDefs.TwIdentity();
            //srcds.Id = IntPtr.Zero;

            evtmsg.EventPtr = Marshal.AllocHGlobal(Marshal.SizeOf(winmsg));
        }
Esempio n. 2
0
 private static extern twainDefs.TwRC DSpxfer([In, Out] twainDefs.TwIdentity origin, [In] twainDefs.TwIdentity dest, twainDefs.TwDG dg, twainDefs.TwDAT dat, twainDefs.TwMSG msg, [In, Out] twainDefs.TwPendingXfers pxfr);
Esempio n. 3
0
 private static extern twainDefs.TwRC DSixfer([In, Out] twainDefs.TwIdentity origin, [In] twainDefs.TwIdentity dest, twainDefs.TwDG dg, twainDefs.TwDAT dat, twainDefs.TwMSG msg, ref IntPtr hbitmap);
Esempio n. 4
0
 private static extern twainDefs.TwRC DSiinf([In, Out] twainDefs.TwIdentity origin, [In] twainDefs.TwIdentity dest, twainDefs.TwDG dg, twainDefs.TwDAT dat, twainDefs.TwMSG msg, [In, Out] twainDefs.TwImageInfo imginf);
Esempio n. 5
0
 private static extern twainDefs.TwRC DScap([In, Out] twainDefs.TwIdentity origin, [In] twainDefs.TwIdentity dest, twainDefs.TwDG dg, twainDefs.TwDAT dat, twainDefs.TwMSG msg, [In, Out] twainDefs.TwCapability capa);
Esempio n. 6
0
 private static extern twainDefs.TwRC DSstatus([In, Out] twainDefs.TwIdentity origin, [In] twainDefs.TwIdentity dest, twainDefs.TwDG dg, twainDefs.TwDAT dat, twainDefs.TwMSG msg, [In, Out] twainDefs.TwStatus dsmstat);
Esempio n. 7
0
 private static extern twainDefs.TwRC DSevent([In, Out] twainDefs.TwIdentity origin, [In, Out] twainDefs.TwIdentity dest, twainDefs.TwDG dg, twainDefs.TwDAT dat, twainDefs.TwMSG msg, ref twainDefs.TwEvent evt);
Esempio n. 8
0
 private static extern twainDefs.TwRC DSuserif([In, Out] twainDefs.TwIdentity origin, [In, Out] twainDefs.TwIdentity dest, twainDefs.TwDG dg, twainDefs.TwDAT dat, twainDefs.TwMSG msg, twainDefs.TwUserInterface guif);
Esempio n. 9
0
 private static extern twainDefs.TwRC DSMImageLayout([In, Out] twainDefs.TwIdentity origin, [In, Out] twainDefs.TwIdentity dest, twainDefs.TwDG dg, twainDefs.TwDAT dat, twainDefs.TwMSG msg, [In, Out] twainDefs.TwImageLayout idds);
Esempio n. 10
0
 private static extern twainDefs.TwRC DSMident([In, Out] twainDefs.TwIdentity origin, IntPtr zeroptr, twainDefs.TwDG dg, twainDefs.TwDAT dat, twainDefs.TwMSG msg, [In, Out] twainDefs.TwIdentity idds);
Esempio n. 11
0
 private static extern twainDefs.TwRC DSMparent([In, Out] twainDefs.TwIdentity origin, IntPtr zeroptr, twainDefs.TwDG dg, twainDefs.TwDAT dat, twainDefs.TwMSG msg, ref IntPtr refptr);