Exemple #1
0
 public static extern ReturnCode DsmWinNew(
     [In, Out] TWIdentity origin,
     [In, Out] TWIdentity destination,
     DataGroups dg,
     DataArgumentType dat,
     Message msg,
     [In, Out] TWCieColor data);
Exemple #2
0
 public static ReturnCode DsmEntry(
     TWIdentity origin,
     TWIdentity destination,
     Message msg,
     TWCieColor data)
 {
     if (PlatformInfo.Current.IsWindows)
     {
         if (PlatformInfo.Current.UseNewWinDSM)
         {
             return(NativeMethods.DsmWinNew(origin, destination, DataGroups.Image, DataArgumentType.CieColor, msg, data));
         }
         else
         {
             return(NativeMethods.DsmWinOld(origin, destination, DataGroups.Image, DataArgumentType.CieColor, msg, data));
         }
     }
     else if (PlatformInfo.Current.IsLinux)
     {
         return(NativeMethods.DsmLinux(origin, destination, DataGroups.Image, DataArgumentType.CieColor, msg, data));
     }
     throw new PlatformNotSupportedException();
 }
Exemple #3
0
 public ReturnCode Get(out TWCieColor cieColor)
 {
     Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.CieColor, Message.Get);
     cieColor = new TWCieColor();
     return(Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, Message.Get, cieColor));
 }