mirror of
https://github.com/soukoku/ntwain.git
synced 2025-12-01 10:54:08 +08:00
Added custom DAT with capability functions in ref to #9.
This commit is contained in:
@@ -74,17 +74,18 @@ namespace NTwain.Triplets
|
||||
public static ReturnCode DsmEntry(
|
||||
TWIdentity origin,
|
||||
TWIdentity destination,
|
||||
DataArgumentType dat,
|
||||
Message msg,
|
||||
TWCapability data)
|
||||
{
|
||||
if (Platform.IsWin)
|
||||
{
|
||||
if (Platform.UseNewDSM) { return NativeMethods.DsmWinNew(origin, destination, DataGroups.Control, DataArgumentType.Capability, msg, data); }
|
||||
else { return NativeMethods.DsmWinOld(origin, destination, DataGroups.Control, DataArgumentType.Capability, msg, data); }
|
||||
if (Platform.UseNewDSM) { return NativeMethods.DsmWinNew(origin, destination, DataGroups.Control, dat, msg, data); }
|
||||
else { return NativeMethods.DsmWinOld(origin, destination, DataGroups.Control, dat, msg, data); }
|
||||
}
|
||||
else if (Platform.IsLinux)
|
||||
{
|
||||
return NativeMethods.DsmLinux(origin, destination, DataGroups.Control, DataArgumentType.Capability, msg, data);
|
||||
return NativeMethods.DsmLinux(origin, destination, DataGroups.Control, dat, msg, data);
|
||||
}
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user