diff options
author | sr55 <[email protected]> | 2014-11-28 22:20:42 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-11-28 22:20:42 +0000 |
commit | 111bcba3edca2b60cbf34fbbe915d1817b06ada1 (patch) | |
tree | a5fb5fd4c47a3c00e2dbc5dc8432c2cd9037421b /win/CS/HandBrake.Interop | |
parent | b332cc6dcc28d06f20e81fd44af2e39fba8b80e9 (diff) |
WinGui: Remove the CLI Check Helper. Using LibHB to determine version information instead.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6564 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs index 03150d1e8..0a82fb980 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs @@ -71,6 +71,29 @@ namespace HandBrake.Interop }
/// <summary>
+ /// Gets the HandBrake version string.
+ /// </summary>
+ public static string Version
+ {
+ get
+ {
+ var versionPtr = HBFunctions.hb_get_version(IntPtr.Zero); // Pointer isn't actually used.
+ return Marshal.PtrToStringAnsi(versionPtr);
+ }
+ }
+
+ /// <summary>
+ /// Gets the HandBrake build number.
+ /// </summary>
+ public static int Build
+ {
+ get
+ {
+ return HBFunctions.hb_get_build(IntPtr.Zero);
+ }
+ }
+
+ /// <summary>
/// Ensures the HB global initialize method has been called.
/// </summary>
public static void EnsureGlobalInit()
|