public static extern ReturnCode DsmWinNew( [In, Out] TWIdentity origin, [In, Out] TWIdentity destination, DataGroups dg, DataArgumentType dat, Message msg, ref TWMemory data);
public static ReturnCode DsmEntry( TWIdentity origin, TWIdentity destination, DataArgumentType dat, Message msg, ref TWMemory data) { if (PlatformInfo.Current.IsWindows) { if (PlatformInfo.Current.UseNewWinDSM) { return(NativeMethods.DsmWinNew(origin, destination, DataGroups.Control, dat, msg, ref data)); } else { return(NativeMethods.DsmWinOld(origin, destination, DataGroups.Control, dat, msg, ref data)); } } else if (PlatformInfo.Current.IsLinux) { return(NativeMethods.DsmLinux(origin, destination, DataGroups.Control, dat, msg, ref data)); } throw new PlatformNotSupportedException(); }
public ReturnCode Get(ref TWMemory profile) { Session.VerifyState(6, 7, DataGroups.Image, DataArgumentType.IccProfile, Message.Get); profile = new TWMemory(); return(Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, DataArgumentType.IccProfile, Message.Get, ref profile)); }