mirror of
https://github.com/soukoku/ntwain.git
synced 2025-07-16 00:58:33 +08:00
Reorg'd things the way I like.
This commit is contained in:
parent
3fc0b97096
commit
addbf7f31d
@ -9,110 +9,70 @@ namespace NTwain.DSM
|
|||||||
const string DsmName = "/System/Library/Frameworks/framework/TWAIN";
|
const string DsmName = "/System/Library/Frameworks/framework/TWAIN";
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref IntPtr hwnd
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref IntPtr hwnd
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_IDENTITY_MACOSX twidentity
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_IDENTITY_MACOSX twidentity
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, ref TW_IDENTITY_MACOSX dest,
|
||||||
ref TW_IDENTITY_MACOSX dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUS twstatus
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUS twstatus
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUS twstatus
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUS twstatus
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUSUTF8 twstatusutf8
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUSUTF8 twstatusutf8
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_ENTRYPOINT twentrypoint
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_ENTRYPOINT twentrypoint
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, ref TW_IDENTITY_MACOSX dest,
|
||||||
ref TW_IDENTITY_MACOSX dest,
|
DG dg, DAT dat, MSG msg, ref TW_DEVICEEVENT twdeviceevent
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_DEVICEEVENT twdeviceevent
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, ref TW_IDENTITY_MACOSX dest,
|
||||||
ref TW_IDENTITY_MACOSX dest,
|
DG dg, DAT dat, MSG msg, ref TW_CUSTOMDSDATA twcustomedsdata
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CUSTOMDSDATA twcustomedsdata
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, ref TW_IDENTITY_MACOSX dest,
|
||||||
ref TW_IDENTITY_MACOSX dest,
|
DG dg, DAT dat, MSG msg, ref TW_CALLBACK twcallback
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CALLBACK twcallback
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, ref TW_IDENTITY_MACOSX dest,
|
||||||
ref TW_IDENTITY_MACOSX dest,
|
DG dg, DAT dat, MSG msg, ref TW_CALLBACK2 twcallback
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CALLBACK2 twcallback
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,110 +9,70 @@ namespace NTwain.DSM
|
|||||||
const string DsmName = "/Library/Frameworks/TWAINDSM.framework/TWAINDSM";
|
const string DsmName = "/Library/Frameworks/TWAINDSM.framework/TWAINDSM";
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref IntPtr hwnd
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref IntPtr hwnd
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_IDENTITY_MACOSX twidentity
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_IDENTITY_MACOSX twidentity
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, ref TW_IDENTITY_MACOSX dest,
|
||||||
ref TW_IDENTITY_MACOSX dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUS twstatus
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUS twstatus
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUS twstatus
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUS twstatus
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUSUTF8 twstatusutf8
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUSUTF8 twstatusutf8
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_ENTRYPOINT twentrypoint
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_ENTRYPOINT twentrypoint
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, ref TW_IDENTITY_MACOSX dest,
|
||||||
ref TW_IDENTITY_MACOSX dest,
|
DG dg, DAT dat, MSG msg, ref TW_DEVICEEVENT twdeviceevent
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_DEVICEEVENT twdeviceevent
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, ref TW_IDENTITY_MACOSX dest,
|
||||||
ref TW_IDENTITY_MACOSX dest,
|
DG dg, DAT dat, MSG msg, ref TW_CUSTOMDSDATA twcustomedsdata
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CUSTOMDSDATA twcustomedsdata
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, ref TW_IDENTITY_MACOSX dest,
|
||||||
ref TW_IDENTITY_MACOSX dest,
|
DG dg, DAT dat, MSG msg, ref TW_CALLBACK twcallback
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CALLBACK twcallback
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_MACOSX origin,
|
ref TW_IDENTITY_MACOSX origin, ref TW_IDENTITY_MACOSX dest,
|
||||||
ref TW_IDENTITY_MACOSX dest,
|
DG dg, DAT dat, MSG msg, ref TW_CALLBACK2 twcallback
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CALLBACK2 twcallback
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,110 +9,70 @@ namespace NTwain.DSM
|
|||||||
const string DsmName = "twain_32.dll";
|
const string DsmName = "twain_32.dll";
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref IntPtr hwnd
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref IntPtr hwnd
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_IDENTITY_LEGACY twidentity
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_IDENTITY_LEGACY twidentity
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest,
|
||||||
ref TW_IDENTITY_LEGACY dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUS twstatus
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUS twstatus
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUS twstatus
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUS twstatus
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUSUTF8 twstatusutf8
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUSUTF8 twstatusutf8
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_ENTRYPOINT twentrypoint
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_ENTRYPOINT twentrypoint
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest,
|
||||||
ref TW_IDENTITY_LEGACY dest,
|
DG dg, DAT dat, MSG msg, ref TW_DEVICEEVENT twdeviceevent
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_DEVICEEVENT twdeviceevent
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest,
|
||||||
ref TW_IDENTITY_LEGACY dest,
|
DG dg, DAT dat, MSG msg, ref TW_CUSTOMDSDATA twcustomedsdata
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CUSTOMDSDATA twcustomedsdata
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest,
|
||||||
ref TW_IDENTITY_LEGACY dest,
|
DG dg, DAT dat, MSG msg, ref TW_CALLBACK twcallback
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CALLBACK twcallback
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest,
|
||||||
ref TW_IDENTITY_LEGACY dest,
|
DG dg, DAT dat, MSG msg, ref TW_CALLBACK2 twcallback
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CALLBACK2 twcallback
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,110 +9,70 @@ namespace NTwain.DSM
|
|||||||
const string DsmName = "twaindsm.dll";
|
const string DsmName = "twaindsm.dll";
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref IntPtr hwnd
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref IntPtr hwnd
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_IDENTITY_LEGACY twidentity
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_IDENTITY_LEGACY twidentity
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest,
|
||||||
ref TW_IDENTITY_LEGACY dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUS twstatus
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUS twstatus
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUS twstatus
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUS twstatus
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_STATUSUTF8 twstatusutf8
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_STATUSUTF8 twstatusutf8
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, IntPtr dest,
|
||||||
IntPtr dest,
|
DG dg, DAT dat, MSG msg, ref TW_ENTRYPOINT twentrypoint
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_ENTRYPOINT twentrypoint
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest,
|
||||||
ref TW_IDENTITY_LEGACY dest,
|
DG dg, DAT dat, MSG msg, ref TW_DEVICEEVENT twdeviceevent
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_DEVICEEVENT twdeviceevent
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest,
|
||||||
ref TW_IDENTITY_LEGACY dest,
|
DG dg, DAT dat, MSG msg, ref TW_CUSTOMDSDATA twcustomedsdata
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CUSTOMDSDATA twcustomedsdata
|
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest,
|
||||||
ref TW_IDENTITY_LEGACY dest,
|
DG dg, DAT dat, MSG msg, ref TW_CALLBACK twcallback
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CALLBACK twcallback
|
|
||||||
);
|
);
|
||||||
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
[DllImport(DsmName, CharSet = CharSet.Ansi)]
|
||||||
internal static extern UInt16 DSM_Entry
|
internal static extern ushort DSM_Entry
|
||||||
(
|
(
|
||||||
ref TW_IDENTITY_LEGACY origin,
|
ref TW_IDENTITY_LEGACY origin, ref TW_IDENTITY_LEGACY dest,
|
||||||
ref TW_IDENTITY_LEGACY dest,
|
DG dg, DAT dat, MSG msg, ref TW_CALLBACK2 twcallback
|
||||||
DG dg,
|
|
||||||
DAT dat,
|
|
||||||
MSG msg,
|
|
||||||
ref TW_CALLBACK2 twcallback
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
using NTwain.DSM;
|
using NTwain.DSM;
|
||||||
using TWAINWorkingGroup;
|
using TWAINWorkingGroup;
|
||||||
|
|
||||||
namespace NTwain.Triplets
|
namespace NTwain.Triplets.ControlDATs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.CALLBACK"/>.
|
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.CALLBACK"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DATCallback : TripletBase
|
public class Callback : TripletBase
|
||||||
{
|
{
|
||||||
public DATCallback(TwainSession session) : base(session)
|
public Callback(TwainSession session) : base(session)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
@ -1,14 +1,14 @@
|
|||||||
using NTwain.DSM;
|
using NTwain.DSM;
|
||||||
using TWAINWorkingGroup;
|
using TWAINWorkingGroup;
|
||||||
|
|
||||||
namespace NTwain.Triplets
|
namespace NTwain.Triplets.ControlDATs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.CALLBACK2"/>.
|
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.CALLBACK2"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DATCallback2 : TripletBase
|
public class Callback2 : TripletBase
|
||||||
{
|
{
|
||||||
public DATCallback2(TwainSession session) : base(session)
|
public Callback2(TwainSession session) : base(session)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
@ -1,14 +1,14 @@
|
|||||||
using NTwain.DSM;
|
using NTwain.DSM;
|
||||||
using TWAINWorkingGroup;
|
using TWAINWorkingGroup;
|
||||||
|
|
||||||
namespace NTwain.Triplets
|
namespace NTwain.Triplets.ControlDATs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.CUSTOMDSDATA"/>.
|
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.CUSTOMDSDATA"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DATCustomDsData : TripletBase
|
public class CustomDsData : TripletBase
|
||||||
{
|
{
|
||||||
public DATCustomDsData(TwainSession session) : base(session)
|
public CustomDsData(TwainSession session) : base(session)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
@ -1,14 +1,14 @@
|
|||||||
using NTwain.DSM;
|
using NTwain.DSM;
|
||||||
using TWAINWorkingGroup;
|
using TWAINWorkingGroup;
|
||||||
|
|
||||||
namespace NTwain.Triplets
|
namespace NTwain.Triplets.ControlDATs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.DEVICEEVENT"/>.
|
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.DEVICEEVENT"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DATDeviceEvent : TripletBase
|
public class DeviceEvent : TripletBase
|
||||||
{
|
{
|
||||||
public DATDeviceEvent(TwainSession session) : base(session)
|
public DeviceEvent(TwainSession session) : base(session)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
@ -3,14 +3,14 @@ using System;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using TWAINWorkingGroup;
|
using TWAINWorkingGroup;
|
||||||
|
|
||||||
namespace NTwain.Triplets
|
namespace NTwain.Triplets.ControlDATs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.ENTRYPOINT"/>.
|
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.ENTRYPOINT"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DATEntryPoint : TripletBase
|
public class EntryPoint : TripletBase
|
||||||
{
|
{
|
||||||
public DATEntryPoint(TwainSession session) : base(session)
|
public EntryPoint(TwainSession session) : base(session)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
@ -2,14 +2,14 @@
|
|||||||
using System;
|
using System;
|
||||||
using TWAINWorkingGroup;
|
using TWAINWorkingGroup;
|
||||||
|
|
||||||
namespace NTwain.Triplets
|
namespace NTwain.Triplets.ControlDATs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.IDENTITY"/>.
|
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.IDENTITY"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DATIdentity : TripletBase
|
public class Identity : TripletBase
|
||||||
{
|
{
|
||||||
public DATIdentity(TwainSession session) : base(session)
|
public Identity(TwainSession session) : base(session)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
@ -2,14 +2,14 @@
|
|||||||
using System;
|
using System;
|
||||||
using TWAINWorkingGroup;
|
using TWAINWorkingGroup;
|
||||||
|
|
||||||
namespace NTwain.Triplets
|
namespace NTwain.Triplets.ControlDATs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.PARENT"/>.
|
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.PARENT"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DATParent : TripletBase
|
public class Parent : TripletBase
|
||||||
{
|
{
|
||||||
public DATParent(TwainSession session) : base(session)
|
public Parent(TwainSession session) : base(session)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ namespace NTwain.Triplets
|
|||||||
}
|
}
|
||||||
|
|
||||||
// determine memory mgmt routines used
|
// determine memory mgmt routines used
|
||||||
if ((((DG)Session.AppIdentity.SupportedGroups) & DG.DSM2) == DG.DSM2)
|
if (((DG)Session.AppIdentity.SupportedGroups & DG.DSM2) == DG.DSM2)
|
||||||
{
|
{
|
||||||
if (Session.DGControl.EntryPoint.Get(out TW_ENTRYPOINT_DELEGATES entry) == STS.SUCCESS)
|
if (Session.DGControl.EntryPoint.Get(out TW_ENTRYPOINT_DELEGATES entry) == STS.SUCCESS)
|
||||||
{
|
{
|
@ -2,14 +2,14 @@
|
|||||||
using System;
|
using System;
|
||||||
using TWAINWorkingGroup;
|
using TWAINWorkingGroup;
|
||||||
|
|
||||||
namespace NTwain.Triplets
|
namespace NTwain.Triplets.ControlDATs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.STATUS"/>.
|
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.STATUS"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DATStatus : TripletBase
|
public class Status : TripletBase
|
||||||
{
|
{
|
||||||
public DATStatus(TwainSession session) : base(session)
|
public Status(TwainSession session) : base(session)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
@ -2,14 +2,14 @@
|
|||||||
using System;
|
using System;
|
||||||
using TWAINWorkingGroup;
|
using TWAINWorkingGroup;
|
||||||
|
|
||||||
namespace NTwain.Triplets
|
namespace NTwain.Triplets.ControlDATs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.STATUSUTF8"/>.
|
/// Contains calls used with <see cref="DG.CONTROL"/> and <see cref="DAT.STATUSUTF8"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DATStatusUtf8 : TripletBase
|
public class StatusUtf8 : TripletBase
|
||||||
{
|
{
|
||||||
public DATStatusUtf8(TwainSession session) : base(session)
|
public StatusUtf8(TwainSession session) : base(session)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
@ -1,4 +1,6 @@
|
|||||||
namespace NTwain.Triplets
|
using NTwain.Triplets.ControlDATs;
|
||||||
|
|
||||||
|
namespace NTwain.Triplets
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains calls used with <see cref="DG.CONTROL"/>.
|
/// Contains calls used with <see cref="DG.CONTROL"/>.
|
||||||
@ -9,32 +11,32 @@
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
private DATParent? _parent;
|
private Parent? _parent;
|
||||||
public DATParent Parent => _parent ??= new DATParent(Session);
|
public Parent Parent => _parent ??= new Parent(Session);
|
||||||
|
|
||||||
private DATEntryPoint? _entryPoint;
|
private EntryPoint? _entryPoint;
|
||||||
public DATEntryPoint EntryPoint => _entryPoint ??= new DATEntryPoint(Session);
|
public EntryPoint EntryPoint => _entryPoint ??= new EntryPoint(Session);
|
||||||
|
|
||||||
private DATIdentity? _identity;
|
private Identity? _identity;
|
||||||
public DATIdentity Identity => _identity ??= new DATIdentity(Session);
|
public Identity Identity => _identity ??= new Identity(Session);
|
||||||
|
|
||||||
private DATStatus? _status;
|
private Status? _status;
|
||||||
public DATStatus Status => _status ??= new DATStatus(Session);
|
public Status Status => _status ??= new Status(Session);
|
||||||
|
|
||||||
private DATStatusUtf8? _statusUtf8;
|
private StatusUtf8? _statusUtf8;
|
||||||
public DATStatusUtf8 StatusUtf8 => _statusUtf8 ??= new DATStatusUtf8(Session);
|
public StatusUtf8 StatusUtf8 => _statusUtf8 ??= new StatusUtf8(Session);
|
||||||
|
|
||||||
private DATCustomDsData? _customDsData;
|
private CustomDsData? _customDsData;
|
||||||
public DATCustomDsData CustomDsData => _customDsData ??= new DATCustomDsData(Session);
|
public CustomDsData CustomDsData => _customDsData ??= new CustomDsData(Session);
|
||||||
|
|
||||||
private DATDeviceEvent? _deviceEvent;
|
private DeviceEvent? _deviceEvent;
|
||||||
public DATDeviceEvent DeviceEvent => _deviceEvent ??= new DATDeviceEvent(Session);
|
public DeviceEvent DeviceEvent => _deviceEvent ??= new DeviceEvent(Session);
|
||||||
|
|
||||||
private DATCallback? _callback;
|
private Callback? _callback;
|
||||||
public DATCallback Callback => _callback ??= new DATCallback(Session);
|
public Callback Callback => _callback ??= new Callback(Session);
|
||||||
|
|
||||||
private DATCallback2? _callback2;
|
private Callback2? _callback2;
|
||||||
public DATCallback2 Callback2 => _callback2 ??= new DATCallback2(Session);
|
public Callback2 Callback2 => _callback2 ??= new Callback2(Session);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user