mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Removed some more doc warnings.
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
<Project ToolsVersion="15.0">
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!--change in each release-->
|
<!--change in each release-->
|
||||||
<PackageVersion>4.0.0</PackageVersion>
|
<PackageVersion>4.0.0</PackageVersion>
|
||||||
|
|
||||||
<!--keep major the same until it changes-->
|
<!--keep it the same until major # changes-->
|
||||||
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
||||||
|
|
||||||
<PackageProjectUrl>https://github.com/soukoku/ntwain</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/soukoku/ntwain</PackageProjectUrl>
|
||||||
@@ -20,11 +20,11 @@
|
|||||||
<Version>$(PkgVersion)</Version>
|
<Version>$(PkgVersion)</Version>
|
||||||
<FileVersion>$(PkgVersion)</FileVersion>
|
<FileVersion>$(PkgVersion)</FileVersion>
|
||||||
<LangVersion>7.1</LangVersion>
|
<LangVersion>7.1</LangVersion>
|
||||||
<!--don't warn missing xml docs-->
|
|
||||||
<NoWarn>1591,1572,1573</NoWarn>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
||||||
|
<!--don't warn missing xml docs-->
|
||||||
|
<NoWarn>1591</NoWarn>
|
||||||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
|
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
|
||||||
<PackageReference Include="System.Text.Encoding.CodePages">
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" />
|
||||||
<Version>5.0.0</Version>
|
|
||||||
</PackageReference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ namespace TWAINWorkingGroup
|
|||||||
IEnumerator<TValue> IEnumerable<TValue>.GetEnumerator()
|
IEnumerator<TValue> IEnumerable<TValue>.GetEnumerator()
|
||||||
{
|
{
|
||||||
if (!(MinValue is IConvertible))
|
if (!(MinValue is IConvertible))
|
||||||
throw new NotSupportedException($"The value type {typeof(TValue).Name} is not supported as range.");
|
throw new NotSupportedException($"The value type {typeof(TValue).Name} is not supported for range enumeration.");
|
||||||
|
|
||||||
return new DynamicEnumerator(MinValue, MaxValue, StepSize);
|
return new DynamicEnumerator(MinValue, MaxValue, StepSize);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// destination must be IntPtr.Zero (null)...
|
/// destination must be IntPtr.Zero (null)...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="origin"></param>
|
/// <param name="origin"></param>
|
||||||
/// <param name="dest"></param>
|
/// <param name="zero"></param>
|
||||||
/// <param name="dg"></param>
|
/// <param name="dg"></param>
|
||||||
/// <param name="dat"></param>
|
/// <param name="dat"></param>
|
||||||
/// <param name="msg"></param>
|
/// <param name="msg"></param>
|
||||||
@@ -649,7 +649,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// <param name="dg"></param>
|
/// <param name="dg"></param>
|
||||||
/// <param name="dat"></param>
|
/// <param name="dat"></param>
|
||||||
/// <param name="msg"></param>
|
/// <param name="msg"></param>
|
||||||
/// <param name="twcallback"></param>
|
/// <param name="twcallback2"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|
||||||
[DllImport("twain_32.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
[DllImport("twain_32.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
||||||
@@ -872,7 +872,7 @@ namespace TWAINWorkingGroup
|
|||||||
DG dg,
|
DG dg,
|
||||||
DAT dat,
|
DAT dat,
|
||||||
MSG msg,
|
MSG msg,
|
||||||
ref TW_CUSTOMDSDATA twcustomedsdata
|
ref TW_CUSTOMDSDATA twcustomdsdata
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport("twaindsm.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
[DllImport("twaindsm.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
||||||
@@ -1213,7 +1213,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// <param name="dg"></param>
|
/// <param name="dg"></param>
|
||||||
/// <param name="dat"></param>
|
/// <param name="dat"></param>
|
||||||
/// <param name="msg"></param>
|
/// <param name="msg"></param>
|
||||||
/// <param name="twentrypoint"></param>
|
/// <param name="twfilesystem"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|
||||||
[DllImport("twain_32.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
[DllImport("twain_32.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
||||||
@@ -1412,7 +1412,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// <param name="dg"></param>
|
/// <param name="dg"></param>
|
||||||
/// <param name="dat"></param>
|
/// <param name="dat"></param>
|
||||||
/// <param name="msg"></param>
|
/// <param name="msg"></param>
|
||||||
/// <param name="hbitmap"></param>
|
/// <param name="hwnd"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|
||||||
[DllImport("twain_32.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
[DllImport("twain_32.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
||||||
@@ -2457,7 +2457,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// <param name="dg"></param>
|
/// <param name="dg"></param>
|
||||||
/// <param name="dat"></param>
|
/// <param name="dat"></param>
|
||||||
/// <param name="msg"></param>
|
/// <param name="msg"></param>
|
||||||
/// <param name="intptr"></param>
|
/// <param name="intptrWav"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|
||||||
[DllImport("twain_32.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
[DllImport("twain_32.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
||||||
@@ -3425,7 +3425,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// <param name="dg"></param>
|
/// <param name="dg"></param>
|
||||||
/// <param name="dat"></param>
|
/// <param name="dat"></param>
|
||||||
/// <param name="msg"></param>
|
/// <param name="msg"></param>
|
||||||
/// <param name="bitmap"></param>
|
/// <param name="intptrBitmap"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|
||||||
[DllImport("twain_32.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
[DllImport("twain_32.dll", EntryPoint = "DSM_Entry", CharSet = CharSet.Ansi)]
|
||||||
|
|||||||
@@ -470,6 +470,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// Alloc memory used with the data source.
|
/// Alloc memory used with the data source.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_u32Size">Number of bytes to allocate</param>
|
/// <param name="a_u32Size">Number of bytes to allocate</param>
|
||||||
|
/// <param name="a_blForcePointer"></param>
|
||||||
/// <returns>Point to memory</returns>
|
/// <returns>Point to memory</returns>
|
||||||
public IntPtr DsmMemAlloc(uint a_u32Size, bool a_blForcePointer = false)
|
public IntPtr DsmMemAlloc(uint a_u32Size, bool a_blForcePointer = false)
|
||||||
{
|
{
|
||||||
@@ -536,6 +537,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// Free memory used with the data source...
|
/// Free memory used with the data source...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_intptrHandle">Pointer to free</param>
|
/// <param name="a_intptrHandle">Pointer to free</param>
|
||||||
|
/// <param name="a_blForcePointer"></param>
|
||||||
public void DsmMemFree(ref IntPtr a_intptrHandle, bool a_blForcePointer = false)
|
public void DsmMemFree(ref IntPtr a_intptrHandle, bool a_blForcePointer = false)
|
||||||
{
|
{
|
||||||
// Validate...
|
// Validate...
|
||||||
@@ -789,12 +791,12 @@ namespace TWAINWorkingGroup
|
|||||||
return (sts == STS.DSEVENT);
|
return (sts == STS.DSEVENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int s_iCloseDsmDelay = 0;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Rollback the TWAIN state machine to the specified value, with an
|
/// Rollback the TWAIN state machine to the specified value, with an
|
||||||
/// automatic resync if it detects a sequence error...
|
/// automatic resync if it detects a sequence error...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_stateTarget">The TWAIN state that we want to end up at</param>
|
/// <param name="a_stateTarget">The TWAIN state that we want to end up at</param>
|
||||||
static int s_iCloseDsmDelay = 0;
|
|
||||||
public STATE Rollback(STATE a_stateTarget)
|
public STATE Rollback(STATE a_stateTarget)
|
||||||
{
|
{
|
||||||
int iRetry;
|
int iRetry;
|
||||||
@@ -961,9 +963,14 @@ namespace TWAINWorkingGroup
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Send a command to the currently loaded DSM...
|
/// Send a command to the currently loaded DSM
|
||||||
|
/// using tokenized command and anything needed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_functionarguments">tokenized command and anything needed</param>
|
/// <param name="a_szDat"></param>
|
||||||
|
/// <param name="a_szDg"></param>
|
||||||
|
/// <param name="a_szMsg"></param>
|
||||||
|
/// <param name="a_szTwmemref"></param>"
|
||||||
|
/// <param name="a_szResult"></param>
|
||||||
/// <returns>true to quit</returns>
|
/// <returns>true to quit</returns>
|
||||||
public STS Send(string a_szDg, string a_szDat, string a_szMsg, ref string a_szTwmemref, ref string a_szResult)
|
public STS Send(string a_szDg, string a_szDat, string a_szMsg, ref string a_szTwmemref, ref string a_szResult)
|
||||||
{
|
{
|
||||||
@@ -1514,6 +1521,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// <param name="a_szFilename"></param>
|
/// <param name="a_szFilename"></param>
|
||||||
/// <param name="a_intptrPtr"></param>
|
/// <param name="a_intptrPtr"></param>
|
||||||
/// <param name="a_iBytes"></param>
|
/// <param name="a_iBytes"></param>
|
||||||
|
/// <param name="a_szFinalFilename"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int WriteImageFile(string a_szFilename, IntPtr a_intptrPtr, int a_iBytes, out string a_szFinalFilename)
|
public static int WriteImageFile(string a_szFilename, IntPtr a_intptrPtr, int a_iBytes, out string a_szFinalFilename)
|
||||||
{
|
{
|
||||||
@@ -1592,6 +1600,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// our simple GUI....
|
/// our simple GUI....
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_twcapability">A TWAIN structure</param>
|
/// <param name="a_twcapability">A TWAIN structure</param>
|
||||||
|
/// <param name="a_blUseSymbols"></param>
|
||||||
/// <returns>A CSV string of the TWAIN structure</returns>
|
/// <returns>A CSV string of the TWAIN structure</returns>
|
||||||
public string CapabilityToCsv(TW_CAPABILITY a_twcapability, bool a_blUseSymbols)
|
public string CapabilityToCsv(TW_CAPABILITY a_twcapability, bool a_blUseSymbols)
|
||||||
{
|
{
|
||||||
@@ -2710,9 +2719,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue file audio transfer commands...
|
/// Issue file audio transfer commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatAudiofilexferWindowsTwain32()
|
private void DatAudiofilexferWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -3068,10 +3074,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue native audio transfer commands...
|
/// Issue native audio transfer commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_intptr">handle</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatAudionativexferWindowsTwain32()
|
private void DatAudionativexferWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -3579,10 +3581,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue capabilities commands...
|
/// Issue capabilities commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twcapability">CAPABILITY structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatCapabilityWindowsTwain32()
|
private void DatCapabilityWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -3881,7 +3879,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
/// <param name="a_dg">Data group</param>
|
||||||
/// <param name="a_msg">Operation</param>
|
/// <param name="a_msg">Operation</param>
|
||||||
/// <param name="a_twceicolor">CIECOLOR structure</param>
|
/// <param name="a_twciecolor">CIECOLOR structure</param>
|
||||||
/// <returns>TWAIN status</returns>
|
/// <returns>TWAIN status</returns>
|
||||||
public STS DatCiecolor(DG a_dg, MSG a_msg, ref TW_CIECOLOR a_twciecolor)
|
public STS DatCiecolor(DG a_dg, MSG a_msg, ref TW_CIECOLOR a_twciecolor)
|
||||||
{
|
{
|
||||||
@@ -4505,10 +4503,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue event commands...
|
/// Issue event commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twevent">EVENT structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatEventWindowsTwain32()
|
private void DatEventWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -4695,10 +4689,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get/Set extended image info information...
|
/// Get/Set extended image info information...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twextimageinfo">EXTIMAGEINFO structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatExtimageinfoWindowsTwain32()
|
private void DatExtimageinfoWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -5489,10 +5479,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue identity commands...
|
/// Issue identity commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twidentity">IDENTITY structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatIdentityWindowsTwain32()
|
private void DatIdentityWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -6081,10 +6067,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get/Set image info information...
|
/// Get/Set image info information...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twimageinfo">IMAGEINFO structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatImageinfoWindowsTwain32()
|
private void DatImageinfoWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -6313,10 +6295,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get/Set layout information...
|
/// Get/Set layout information...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twimagelayout">IMAGELAYOUT structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatImagelayoutWindowsTwain32()
|
private void DatImagelayoutWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -6527,9 +6505,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue file image transfer commands...
|
/// Issue file image transfer commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatImagefilexferWindowsTwain32()
|
private void DatImagefilexferWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -6740,10 +6715,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue memory file image transfer commands...
|
/// Issue memory file image transfer commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twimagememxfer">IMAGEMEMXFER structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatImagememfilexferWindowsTwain32()
|
private void DatImagememfilexferWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -7002,10 +6973,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue memory image transfer commands...
|
/// Issue memory image transfer commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twimagememxfer">IMAGEMEMXFER structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatImagememxferWindowsTwain32()
|
private void DatImagememxferWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -7264,10 +7231,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue native image transfer commands...
|
/// Issue native image transfer commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_bitmap">BITMAP structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatImagenativexferWindowsTwain32()
|
private void DatImagenativexferWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -7947,10 +7910,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue DSM commands...
|
/// Issue DSM commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_intptrHwnd">PARENT structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatParentWindowsTwain32()
|
private void DatParentWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -8360,10 +8319,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue pendingxfers commands...
|
/// Issue pendingxfers commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twpendingxfers">PENDINGXFERS structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatPendingxfersWindowsTwain32()
|
private void DatPendingxfersWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -8748,10 +8703,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get/Set for a file xfer...
|
/// Get/Set for a file xfer...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twsetupfilexfer">SETUPFILEXFER structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatSetupfilexferWindowsTwain32()
|
private void DatSetupfilexferWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -8959,13 +8910,6 @@ namespace TWAINWorkingGroup
|
|||||||
return (stsRcOrCc);
|
return (stsRcOrCc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Get info about the memory xfer...
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twsetupmemxfer">SETUPMEMXFER structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatSetupmemxferWindowsTwain32()
|
private void DatSetupmemxferWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -9176,10 +9120,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get some text for an error...
|
/// Get some text for an error...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twstatus">STATUS structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatStatusWindowsTwain32()
|
private void DatStatusWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -9680,10 +9620,6 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Issue capabilities commands...
|
/// Issue capabilities commands...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_dg">Data group</param>
|
|
||||||
/// <param name="a_msg">Operation</param>
|
|
||||||
/// <param name="a_twuserinterface">USERINTERFACE structure</param>
|
|
||||||
/// <returns>TWAIN status</returns>
|
|
||||||
private void DatUserinterfaceWindowsTwain32()
|
private void DatUserinterfaceWindowsTwain32()
|
||||||
{
|
{
|
||||||
// If you get a first chance exception, be aware that some drivers
|
// If you get a first chance exception, be aware that some drivers
|
||||||
@@ -10911,7 +10847,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// TWAIN needs help, if we want it to run stuff in our main
|
/// TWAIN needs help, if we want it to run stuff in our main
|
||||||
/// UI thread...
|
/// UI thread...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="code">the code to run</param>
|
/// <param name="a_action">the code to run</param>
|
||||||
private void RunInUiThread(Action a_action)
|
private void RunInUiThread(Action a_action)
|
||||||
{
|
{
|
||||||
m_runinuithreaddelegate(a_action);
|
m_runinuithreaddelegate(a_action);
|
||||||
@@ -11164,6 +11100,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// Convert the contents of a capability to a string that we can show in
|
/// Convert the contents of a capability to a string that we can show in
|
||||||
/// our simple GUI...
|
/// our simple GUI...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <param name="a_twcapability"></param>
|
||||||
/// <param name="a_twty">Data type</param>
|
/// <param name="a_twty">Data type</param>
|
||||||
/// <param name="a_intptr">Pointer to the data</param>
|
/// <param name="a_intptr">Pointer to the data</param>
|
||||||
/// <param name="a_iIndex">Index of the item in the data</param>
|
/// <param name="a_iIndex">Index of the item in the data</param>
|
||||||
@@ -11962,6 +11899,8 @@ namespace TWAINWorkingGroup
|
|||||||
/// This should work for most DIBs.
|
/// This should work for most DIBs.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_intptrNative">The pointer to something (presumably a BITMAP or a TIFF image)</param>
|
/// <param name="a_intptrNative">The pointer to something (presumably a BITMAP or a TIFF image)</param>
|
||||||
|
/// <param name="a_blIsHandle"></param>
|
||||||
|
/// <param name="a_iHeaderBytes"></param>
|
||||||
/// <returns>C# Bitmap of image</returns>
|
/// <returns>C# Bitmap of image</returns>
|
||||||
public byte[] NativeToByteArray(IntPtr a_intptrNative, bool a_blIsHandle, out int a_iHeaderBytes)
|
public byte[] NativeToByteArray(IntPtr a_intptrNative, bool a_blIsHandle, out int a_iHeaderBytes)
|
||||||
{
|
{
|
||||||
@@ -12217,7 +12156,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Convert a linux64 identity to a public identity...
|
/// Convert a linux64 identity to a public identity...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_twidentitylegacy">Legacy identity to convert</param>
|
/// <param name="a_twidentitylinux64">identity to convert</param>
|
||||||
/// <returns>Regular form of identity</returns>
|
/// <returns>Regular form of identity</returns>
|
||||||
private TW_IDENTITY Twidentitylinux64ToTwidentity(TW_IDENTITY_LINUX64 a_twidentitylinux64)
|
private TW_IDENTITY Twidentitylinux64ToTwidentity(TW_IDENTITY_LINUX64 a_twidentitylinux64)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -236,6 +236,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// Set our value...
|
/// Set our value...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_sz"></param>
|
/// <param name="a_sz"></param>
|
||||||
|
/// <param name="a_blMayHavePrefix"></param>
|
||||||
private void SetValue(string a_sz, bool a_blMayHavePrefix)
|
private void SetValue(string a_sz, bool a_blMayHavePrefix)
|
||||||
{
|
{
|
||||||
// If we're running on a Mac, tack on the prefix 'byte'...
|
// If we're running on a Mac, tack on the prefix 'byte'...
|
||||||
@@ -411,6 +412,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// Set our value...
|
/// Set our value...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_sz"></param>
|
/// <param name="a_sz"></param>
|
||||||
|
/// <param name="a_blMayHavePrefix"></param>
|
||||||
private void SetValue(string a_sz, bool a_blMayHavePrefix)
|
private void SetValue(string a_sz, bool a_blMayHavePrefix)
|
||||||
{
|
{
|
||||||
// If we're running on a Mac, tack on the prefix 'byte'...
|
// If we're running on a Mac, tack on the prefix 'byte'...
|
||||||
@@ -625,6 +627,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// Set our value...
|
/// Set our value...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_sz"></param>
|
/// <param name="a_sz"></param>
|
||||||
|
/// <param name="a_blMayHavePrefix"></param>
|
||||||
private void SetValue(string a_sz, bool a_blMayHavePrefix)
|
private void SetValue(string a_sz, bool a_blMayHavePrefix)
|
||||||
{
|
{
|
||||||
// If we're running on a Mac, tack on the prefix 'byte'...
|
// If we're running on a Mac, tack on the prefix 'byte'...
|
||||||
@@ -919,6 +922,7 @@ namespace TWAINWorkingGroup
|
|||||||
/// Set our value...
|
/// Set our value...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="a_sz"></param>
|
/// <param name="a_sz"></param>
|
||||||
|
/// <param name="a_blMayHavePrefix"></param>
|
||||||
private void SetValue(string a_sz, bool a_blMayHavePrefix)
|
private void SetValue(string a_sz, bool a_blMayHavePrefix)
|
||||||
{
|
{
|
||||||
// If we're running on a Mac, tack on the prefix 'byte'...
|
// If we're running on a Mac, tack on the prefix 'byte'...
|
||||||
|
|||||||
Reference in New Issue
Block a user