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