From 111bcba3edca2b60cbf34fbbe915d1817b06ada1 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 28 Nov 2014 22:20:42 +0000 Subject: 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 --- .../HandBrakeInterop/HandBrakeUtils.cs | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'win/CS/HandBrake.Interop') 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 @@ -70,6 +70,29 @@ namespace HandBrake.Interop } } + /// + /// Gets the HandBrake version string. + /// + public static string Version + { + get + { + var versionPtr = HBFunctions.hb_get_version(IntPtr.Zero); // Pointer isn't actually used. + return Marshal.PtrToStringAnsi(versionPtr); + } + } + + /// + /// Gets the HandBrake build number. + /// + public static int Build + { + get + { + return HBFunctions.hb_get_build(IntPtr.Zero); + } + } + /// /// Ensures the HB global initialize method has been called. /// -- cgit v1.2.3