mirror of
https://github.com/soukoku/ntwain.git
synced 2025-12-01 10:54:08 +08:00
Updated IPlatformInfo to include internally used properties.
This commit is contained in:
@@ -6,8 +6,7 @@ using System.Text;
|
||||
namespace NTwain.Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for checking whether messages from WndProc is a TWAIN message and is handled
|
||||
/// internally.
|
||||
/// Interface for something that can check whether messages from WndProc is a TWAIN message and already handled.
|
||||
/// </summary>
|
||||
interface IWinMessageFilter
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace NTwain.Internals
|
||||
{
|
||||
Debug.WriteLine("NTwain message loop is starting.");
|
||||
_dispatcher = Dispatcher.CurrentDispatcher;
|
||||
if (!PlatformInfo.__global.IsOnMono)
|
||||
if (!PlatformInfo.Current.IsOnMono)
|
||||
{
|
||||
_hook = new WindowsHook(filter);
|
||||
Handle = _hook.Handle;
|
||||
@@ -75,7 +75,7 @@ namespace NTwain.Internals
|
||||
{
|
||||
action();
|
||||
}
|
||||
else if (PlatformInfo.__global.IsOnMono)
|
||||
else if (PlatformInfo.Current.IsOnMono)
|
||||
{
|
||||
using (var man = new WrappedManualResetEvent())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user