mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Missed DataFlags rename.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
/// Gets the data functionalities for TWAIN 2 detection.
|
||||
/// </summary>
|
||||
/// <value>The data functionalities.</value>
|
||||
DataFlags DataFunctionalities { get; }
|
||||
DataFlags DataFlags { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the supported data group. The application will normally set this field to specify which Data
|
||||
|
||||
@@ -1680,7 +1680,7 @@ namespace NTwain.Data
|
||||
internal set { _version = value; }
|
||||
}
|
||||
|
||||
public DataFlags DataFunctionalities
|
||||
public DataFlags DataFlags
|
||||
{
|
||||
get { return (DataFlags)(_supportedGroups & 0xffff0000); }
|
||||
internal set { _supportedGroups = ((uint)value & 0xffff0000) | (0x0000ffff & _supportedGroups); }
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace NTwain.Triplets.Control
|
||||
DataGroups.Control, DataArgumentType.Parent, Message.OpenDSM, ref hWnd);
|
||||
|
||||
isDsm2 = rc == ReturnCode.Success &&
|
||||
(Session.Config.App32.DataFunctionalities & DataFlags.DSM2) == DataFlags.DSM2;
|
||||
(Session.Config.App32.DataFlags & DataFlags.DSM2) == DataFlags.DSM2;
|
||||
}
|
||||
|
||||
if (rc == ReturnCode.Success)
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace NTwain
|
||||
config.DefaultMemoryManager = new WinMemoryManager(); // initial default
|
||||
config.App32 = new TW_IDENTITY
|
||||
{
|
||||
DataFunctionalities = DataFlags.App2,
|
||||
DataFlags = DataFlags.App2,
|
||||
DataGroup = DataGroups.Control | _dg,
|
||||
Manufacturer = _companyName ?? "Unknown",
|
||||
ProductFamily = _appName ?? "Unknown",
|
||||
|
||||
Reference in New Issue
Block a user