Exemplo n.º 1
0
        public Twain()
        {
            appid = new TwIdentity();
            appid.Id				= IntPtr.Zero;
            appid.Version.MajorNum	= 1;
            appid.Version.MinorNum	= 1;
            appid.Version.Language	= LanguageUSA;
            appid.Version.Country	= CountryUSA;
            appid.Version.Info		= "Hack 1";
            appid.ProtocolMajor		= TwProtocol.Major;
            appid.ProtocolMinor		= TwProtocol.Minor;
            appid.SupportedGroups	= (int)(TwDG.Image | TwDG.Control);
            appid.Manufacturer		= "NETMaster";
            appid.ProductFamily		= "Freeware";
            appid.ProductName		= "Hack";

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

            evtmsg.EventPtr = Marshal.AllocHGlobal( Marshal.SizeOf( winmsg ) );
        }
Exemplo n.º 2
0
        public Twain()
        {
            appid    = new TwIdentity();
            appid.Id = IntPtr.Zero;
            appid.Version.MajorNum = 1;
            appid.Version.MinorNum = 1;
            appid.Version.Language = LanguageUSA;
            appid.Version.Country  = CountryUSA;
            appid.Version.Info     = "Hack 1";
            appid.ProtocolMajor    = TwProtocol.Major;
            appid.ProtocolMinor    = TwProtocol.Minor;
            appid.SupportedGroups  = (int)(TwDG.Image | TwDG.Control);
            appid.Manufacturer     = "NETMaster";
            appid.ProductFamily    = "Freeware";
            appid.ProductName      = "Hack";

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

            evtmsg.EventPtr = Marshal.AllocHGlobal(Marshal.SizeOf(winmsg));
        }
 private static extern TwRC DSpxfer([In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, TwSetupFileXfers sfxfr);
 private static extern TwRC DSpxfer([In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwPendingXfers pxfr);
 private static extern TwRC DSixfer([In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, ref IntPtr hbitmap);
 private static extern TwRC DSiinf([In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwImageInfo imginf);
 private static extern TwRC DScap([In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwSetupFileXFfer setupFileXFfer);
 private static extern TwRC DScap([In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwCapability capa);
 private static extern TwRC DSstatus([In, Out] TwIdentity origin, [In] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwStatus dsmstat);
Exemplo n.º 10
0
 private static extern TwRC DSevent([In, Out] TwIdentity origin, [In, Out] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, ref TwEvent evt);
Exemplo n.º 11
0
 private static extern TwRC DSuserif([In, Out] TwIdentity origin, [In, Out] TwIdentity dest, TwDG dg, TwDAT dat, TwMSG msg, TwUserInterface guif);
Exemplo n.º 12
0
 private static extern TwRC DSMstatus([In, Out] TwIdentity origin, IntPtr zeroptr, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwStatus dsmstat);
Exemplo n.º 13
0
 private static extern TwRC DSMident([In, Out] TwIdentity origin, IntPtr zeroptr, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwIdentity idds);
Exemplo n.º 14
0
 private static extern TwRC DSMparent([In, Out] TwIdentity origin, IntPtr zeroptr, TwDG dg, TwDAT dat, TwMSG msg, ref IntPtr refptr);
Exemplo n.º 15
0
 public void SetDevice(TwIdentity device)
 {
     this.srcds = device;
 }