diff options
author | Scott <[email protected]> | 2020-04-29 19:06:11 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-29 19:06:11 +0100 |
commit | 91051b41df7f9e6da68d14c9e806968df61ef050 (patch) | |
tree | 90293ad067e14e9eff409ed7bf5d105df3697a45 /win/CS/HandBrake.Interop | |
parent | 565dae9f71330b87c5e7898a469052446c4592f0 (diff) |
WinGui: Enable multi-instance support. (#2797)
Diffstat (limited to 'win/CS/HandBrake.Interop')
-rw-r--r-- | win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs | 12 | ||||
-rw-r--r-- | win/CS/HandBrake.Interop/Interop/Interfaces/IEncodeInstance.cs | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs b/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs index a5027f72f..5d4dd98ac 100644 --- a/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs +++ b/win/CS/HandBrake.Interop/Interop/HandBrakeInstance.cs @@ -13,6 +13,7 @@ namespace HandBrake.Interop.Interop using System.Collections.Generic; using System.Diagnostics; using System.Linq; + using System.Runtime.CompilerServices; using System.Runtime.ExceptionServices; using System.Runtime.InteropServices; using System.Timers; @@ -73,10 +74,6 @@ namespace HandBrake.Interop.Interop /// </summary> public event EventHandler<EncodeCompletedEventArgs> EncodeCompleted; - /// <summary> - /// Gets the handle. - /// </summary> - internal IntPtr Handle { get; private set; } /// <summary> /// Gets the number of previews created during scan. @@ -108,6 +105,13 @@ namespace HandBrake.Interop.Interop /// </summary> public int Build => hbFunctions.hb_get_build(this.Handle); + public bool IsRemoteInstance => false; + + /// <summary> + /// Gets the handle. + /// </summary> + internal IntPtr Handle { get; private set; } + /// <summary> /// Initializes this instance. /// </summary> diff --git a/win/CS/HandBrake.Interop/Interop/Interfaces/IEncodeInstance.cs b/win/CS/HandBrake.Interop/Interop/Interfaces/IEncodeInstance.cs index 5a0957cb9..e7a52fbfa 100644 --- a/win/CS/HandBrake.Interop/Interop/Interfaces/IEncodeInstance.cs +++ b/win/CS/HandBrake.Interop/Interop/Interfaces/IEncodeInstance.cs @@ -27,6 +27,8 @@ namespace HandBrake.Interop.Interop.Interfaces /// </summary> event EventHandler<EncodeProgressEventArgs> EncodeProgress; + bool IsRemoteInstance { get; } + /// <summary> /// Initializes this instance. /// </summary> |