]> granicus.if.org Git - handbrake/commitdiff
WinGui: Change the services library dll imports to be "hb" rather than "hb.dll"....
authorsr55 <sr55.hb@outlook.com>
Sun, 29 Jan 2017 17:29:27 +0000 (17:29 +0000)
committerScott <sr55@users.noreply.github.com>
Fri, 3 Feb 2017 20:39:34 +0000 (20:39 +0000)
win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs

index 1adba8944d30668f20c71c662a7c17801411df50..beb572f0de9828d5b614857233677cd056c2254e 100644 (file)
@@ -18,61 +18,61 @@ namespace HandBrake.ApplicationServices.Interop.HbLib
     /// </summary>\r
     public static class HBFunctions\r
     {\r
-        [DllImport("hb.dll", EntryPoint = "hb_register_logger", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_register_logger", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_register_logger(LoggingCallback callback);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_register_error_handler", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_register_error_handler", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_register_error_handler(LoggingCallback callback);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_global_init", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_global_init", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_global_init();\r
 \r
         /// Return Type: hb_handle_t*\r
         ///verbose: int\r
         ///update_check: int\r
-        [DllImport("hb.dll", EntryPoint = "hb_init", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_init", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_init(int verbose, int update_check);\r
 \r
 \r
         /// Return Type: hb_handle_t*\r
         ///verbose: int\r
         ///update_check: int\r
-        [DllImport("hb.dll", EntryPoint = "hb_init_dl", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_init_dl", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_init_dl(int verbose, int update_check);\r
 \r
 \r
         /// Return Type: char*\r
         ///param0: hb_handle_t*\r
-        [DllImport("hb.dll", EntryPoint = "hb_get_version", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_get_version", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_get_version(IntPtr hbHandle);\r
 \r
 \r
         /// Return Type: int\r
         ///param0: hb_handle_t*\r
-        [DllImport("hb.dll", EntryPoint = "hb_get_build", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_get_build", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_get_build(IntPtr hbHandle);\r
 \r
 \r
         /// Return Type: int\r
         ///h: hb_handle_t*\r
         ///version: char**\r
-        [DllImport("hb.dll", EntryPoint = "hb_check_update", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_check_update", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_check_update(IntPtr handle, ref IntPtr version);\r
 \r
 \r
         /// Return Type: char*\r
         ///path: char*\r
-        [DllImport("hb.dll", EntryPoint = "hb_dvd_name", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_dvd_name", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_dvd_name(IntPtr path);\r
 \r
 \r
         /// Return Type: void\r
         ///enable: int\r
-        [DllImport("hb.dll", EntryPoint = "hb_dvd_set_dvdnav", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_dvd_set_dvdnav", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_dvd_set_dvdnav(int enable);\r
 \r
         // void hb_opencl_set_enable(hb_handle_t* h, int enable_opencl);\r
-        [DllImport("hb.dll", EntryPoint = "hb_opencl_set_enable", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_opencl_set_enable", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_opencl_set_enable(IntPtr hbHandle, int enable);\r
 \r
         /// Return Type: void\r
@@ -81,119 +81,119 @@ namespace HandBrake.ApplicationServices.Interop.HbLib
         ///title_index: int\r
         ///preview_count: int\r
         ///store_previews: int\r
-        [DllImport("hb.dll", EntryPoint = "hb_scan", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_scan", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_scan(IntPtr hbHandle, IntPtr path, int title_index, int preview_count, int store_previews, ulong min_duration);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_scan_stop", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_scan_stop", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_scan_stop(IntPtr hbHandle);\r
 \r
         /// Return Type: hb_list_t*\r
         ///param0: hb_handle_t*\r
-        [DllImport("hb.dll", EntryPoint = "hb_get_titles", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_get_titles", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_get_titles(IntPtr hbHandle);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_set_anamorphic_size2", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_set_anamorphic_size2", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_set_anamorphic_size2(ref hb_geometry_s sourceGeometry, ref hb_geometry_settings_s uiGeometry, ref hb_geometry_s result);\r
         \r
 \r
         /// Return Type: int\r
         ///param0: hb_handle_t*\r
-        [DllImport("hb.dll", EntryPoint = "hb_count", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_count", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_count(IntPtr hbHandle);\r
 \r
 \r
         /// Return Type: hb_job_t*\r
         ///param0: hb_handle_t*\r
         ///param1: int\r
-        [DllImport("hb.dll", EntryPoint = "hb_job", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_job", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_job(IntPtr hbHandle, int jobIndex);\r
 \r
         /// Return Type: void\r
         ///param0: hb_handle_t*\r
         ///param1: hb_job_t*\r
-        [DllImport("hb.dll", EntryPoint = "hb_rem", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_rem", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_rem(IntPtr hbHandle, IntPtr job);\r
 \r
 \r
         /// Return Type: void\r
         ///param0: hb_handle_t*\r
-        [DllImport("hb.dll", EntryPoint = "hb_start", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_start", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_start(IntPtr hbHandle);\r
 \r
 \r
         /// Return Type: void\r
         ///param0: hb_handle_t*\r
-        [DllImport("hb.dll", EntryPoint = "hb_pause", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_pause", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_pause(IntPtr hbHandle);\r
 \r
 \r
         /// Return Type: void\r
         ///param0: hb_handle_t*\r
-        [DllImport("hb.dll", EntryPoint = "hb_resume", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_resume", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_resume(IntPtr hbHandle);\r
 \r
 \r
         /// Return Type: void\r
         ///param0: hb_handle_t*\r
-        [DllImport("hb.dll", EntryPoint = "hb_stop", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_stop", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_stop(IntPtr hbHandle);\r
 \r
 \r
         /// Return Type: void\r
         ///param0: hb_handle_t**\r
-        [DllImport("hb.dll", EntryPoint = "hb_close", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_close", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_close(IntPtr hbHandle);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_global_close", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_global_close", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_global_close();\r
 \r
         //hb_list_t * hb_list_init();\r
-        [DllImport("hb.dll", EntryPoint = "hb_list_init", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_list_init", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_list_init();\r
 \r
         //int         hb_list_count( const hb_list_t * );\r
-        [DllImport("hb.dll", EntryPoint = "hb_list_count", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_list_count", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_list_count(IntPtr listPtr);\r
 \r
         //void        hb_list_add( hb_list_t *, void * );\r
-        [DllImport("hb.dll", EntryPoint = "hb_list_add", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_list_add", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_list_add(IntPtr listPtr, IntPtr item);\r
 \r
         //void        hb_list_insert( hb_list_t * l, int pos, void * p );\r
-        [DllImport("hb.dll", EntryPoint = "hb_list_insert", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_list_insert", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_list_insert(IntPtr listPtr, int pos, IntPtr item);\r
 \r
         //void        hb_list_rem( hb_list_t *, void * );\r
-        [DllImport("hb.dll", EntryPoint = "hb_list_rem", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_list_rem", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_list_rem(IntPtr listPtr, IntPtr item);\r
 \r
         //void      * hb_list_item( const hb_list_t *, int );\r
-        [DllImport("hb.dll", EntryPoint = "hb_list_item", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_list_item", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_list_item(IntPtr listPtr, int itemIndex);\r
 \r
         //void        hb_list_close( hb_list_t ** );\r
-        [DllImport("hb.dll", EntryPoint = "hb_list_close", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_list_close", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_list_close(IntPtr listPtrPtr);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_subtitle_can_force", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_subtitle_can_force", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_subtitle_can_force(int source);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_subtitle_can_burn", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_subtitle_can_burn", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_subtitle_can_burn(int source);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_subtitle_can_pass", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_subtitle_can_pass", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_subtitle_can_pass(int source, int mux);\r
 \r
 \r
         // int hb_video_framerate_get_from_name(const char *name)\r
-        [DllImport("hb.dll", EntryPoint = "hb_video_framerate_get_from_name", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_video_framerate_get_from_name", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_video_framerate_get_from_name(IntPtr name);\r
 \r
 //const char*      hb_video_framerate_get_name(int framerate);\r
 //const char*      hb_video_framerate_sanitize_name(const char *name);\r
 \r
         // returns hb_rate_s\r
-        [DllImport("hb.dll", EntryPoint = "hb_video_framerate_get_next", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_video_framerate_get_next", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_video_framerate_get_next(IntPtr last);\r
 \r
 \r
@@ -202,43 +202,43 @@ namespace HandBrake.ApplicationServices.Interop.HbLib
 //const char*      hb_audio_samplerate_get_name(int samplerate);\r
 \r
         // returns hb_rate_s\r
-        [DllImport("hb.dll", EntryPoint = "hb_audio_samplerate_get_next", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_audio_samplerate_get_next", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_audio_samplerate_get_next(IntPtr last);\r
 \r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_audio_bitrate_get_best", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_audio_bitrate_get_best", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_audio_bitrate_get_best(uint codec, int bitrate, int samplerate, int mixdown);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_audio_bitrate_get_default", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_audio_bitrate_get_default", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_audio_bitrate_get_default(uint codec, int samplerate, int mixdown);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_audio_bitrate_get_limits", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_audio_bitrate_get_limits", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_audio_bitrate_get_limits(uint codec, int samplerate, int mixdown, ref int low, ref int high);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_audio_bitrate_get_next", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_audio_bitrate_get_next", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_audio_bitrate_get_next(IntPtr last);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_video_quality_get_limits", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_video_quality_get_limits", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_video_quality_get_limits(uint codec, ref float low, ref float high, ref float granularity, ref int direction);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_video_quality_get_name", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_video_quality_get_name", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_video_quality_get_name(uint codec);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_audio_quality_get_limits", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_audio_quality_get_limits", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_audio_quality_get_limits(uint codec, ref float low, ref float high, ref float granularity, ref int direction);\r
 \r
 //float hb_audio_quality_get_best(uint32_t codec, float quality);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_audio_quality_get_default", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_audio_quality_get_default", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern float hb_audio_quality_get_default(uint codec);\r
 \r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_audio_compression_get_limits", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_audio_compression_get_limits", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_audio_compression_get_limits(uint codec, ref float low, ref float high, ref float granularity, ref int direction);\r
 \r
 //float hb_audio_compression_get_best(uint32_t codec, float compression);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_audio_compression_get_default", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_audio_compression_get_default", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern float hb_audio_compression_get_default(uint codec);\r
 \r
 \r
@@ -250,25 +250,25 @@ namespace HandBrake.ApplicationServices.Interop.HbLib
 //const hb_dither_t* hb_audio_dither_get_next(const hb_dither_t *last);\r
 \r
         // hb_audio_can_apply_drc2(hb_handle_t *h, int title_idx, int audio_idx, int encoder)\r
-        [DllImport("hb.dll", EntryPoint = "hb_audio_can_apply_drc2", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_audio_can_apply_drc2", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_audio_can_apply_drc2(IntPtr handle, int title_index, int audio_index, int encoder);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_mixdown_is_supported", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_mixdown_is_supported", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_mixdown_is_supported(int mixdown, uint codec, ulong layout);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_mixdown_has_codec_support", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_mixdown_has_codec_support", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_mixdown_has_codec_support(int mixdown, uint codec);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_mixdown_has_remix_support", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_mixdown_has_remix_support", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_mixdown_has_remix_support(int mixdown, ulong layout);\r
 \r
 //int                 hb_mixdown_get_discrete_channel_count(int mixdown);\r
 //int                 hb_mixdown_get_low_freq_channel_count(int mixdown);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_mixdown_get_best", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_mixdown_get_best", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_mixdown_get_best(uint codec, ulong layout, int mixdown);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_mixdown_get_default", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_mixdown_get_default", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_mixdown_get_default(uint codec, ulong layout);\r
 \r
 //int                 hb_mixdown_get_from_name(const char *name);\r
@@ -276,7 +276,7 @@ namespace HandBrake.ApplicationServices.Interop.HbLib
 //const char*         hb_mixdown_get_short_name(int mixdown);\r
 //const char*         hb_mixdown_sanitize_name(const char *name);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_mixdown_get_next", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_mixdown_get_next", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_mixdown_get_next(IntPtr last);\r
 \r
 //int                 hb_video_encoder_get_default(int muxer);\r
@@ -286,7 +286,7 @@ namespace HandBrake.ApplicationServices.Interop.HbLib
 //const char*         hb_video_encoder_get_long_name(int encoder);\r
 //const char*         hb_video_encoder_sanitize_name(const char *name);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_video_encoder_get_next", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_video_encoder_get_next", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_video_encoder_get_next(IntPtr last);\r
 \r
 /*\r
@@ -304,7 +304,7 @@ namespace HandBrake.ApplicationServices.Interop.HbLib
 //const char*         hb_audio_encoder_get_long_name(int encoder);\r
 //const char*         hb_audio_encoder_sanitize_name(const char *name);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_audio_encoder_get_next", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_audio_encoder_get_next", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_audio_encoder_get_next(IntPtr last);\r
 \r
 //int                   hb_container_get_from_name(const char *name);\r
@@ -315,57 +315,57 @@ namespace HandBrake.ApplicationServices.Interop.HbLib
 //const char*           hb_container_get_default_extension(int format);\r
 //const char*           hb_container_sanitize_name(const char *name);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_container_get_from_name", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_container_get_from_name", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_container_get_from_name([In] [MarshalAs(UnmanagedType.LPStr)] string name);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_container_get_next", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_container_get_next", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_container_get_next(IntPtr last);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_video_encoder_get_presets", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_video_encoder_get_presets", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_video_encoder_get_presets(int encoder);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_video_encoder_get_tunes", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_video_encoder_get_tunes", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_video_encoder_get_tunes(int encoder);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_video_encoder_get_profiles", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_video_encoder_get_profiles", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_video_encoder_get_profiles(int encoder);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_video_encoder_get_levels", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_video_encoder_get_levels", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_video_encoder_get_levels(int encoder);\r
 \r
 \r
-        [DllImport("hb.dll", EntryPoint = "lang_get_next", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "lang_get_next", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr lang_get_next(IntPtr last);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "lang_for_code2", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "lang_for_code2", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr lang_for_code2([In] [MarshalAs(UnmanagedType.LPStr)] string code2);\r
 \r
 \r
         ///hb_title_set_t  * hb_get_title_set( hb_handle_t * );\r
-        [DllImport("hb.dll", EntryPoint = "hb_get_title_set", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_get_title_set", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_get_title_set(IntPtr hbHandle);\r
 \r
         ///hb_job_t * hb_job_init_by_index( hb_handle_t *h, int title_index );\r
-        [DllImport("hb.dll", EntryPoint = "hb_job_init_by_index", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_job_init_by_index", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_job_init_by_index(IntPtr hbHandle, int title_index);\r
 \r
         ///void hb_job_close( hb_job_t ** job );\r
-        [DllImport("hb.dll", EntryPoint = "hb_job_close", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_job_close", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_job_close(IntPtr job);\r
 \r
         ///void hb_chapter_set_title(hb_chapter_t *chapter, const char *title);\r
-        [DllImport("hb.dll", EntryPoint = "hb_chapter_set_title", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_chapter_set_title", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_chapter_set_title(IntPtr chapter, [In] [MarshalAs(UnmanagedType.LPStr)] string title);\r
 \r
         ///void hb_chapter_set_title(hb_chapter_t *chapter, const char *title);\r
-        [DllImport("hb.dll", EntryPoint = "hb_chapter_set_title", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_chapter_set_title", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_chapter_set_title__ptr(IntPtr chapter, IntPtr title);\r
 \r
         /// hb_filter_object_t * hb_filter_init( int filter_id );\r
-        [DllImport("hb.dll", EntryPoint = "hb_filter_init", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_filter_init", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_filter_init(int filter_id);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_generate_filter_settings_json", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_generate_filter_settings_json", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_generate_filter_settings_json(\r
             int filter_id,\r
             [In] [MarshalAs(UnmanagedType.LPStr)] string preset,\r
@@ -373,24 +373,24 @@ namespace HandBrake.ApplicationServices.Interop.HbLib
             [In] [MarshalAs(UnmanagedType.LPStr)] string custom);\r
 \r
         /// char* hb_filter_get_presets_json(int filter_id);\r
-        [DllImport("hb.dll", EntryPoint = "hb_filter_get_presets_json", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_filter_get_presets_json", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_filter_get_presets_json(int filter_id);\r
 \r
         /// char* hb_filter_get_tuness_json(int filter_id);\r
-        [DllImport("hb.dll", EntryPoint = "hb_filter_get_tunes_json", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_filter_get_tunes_json", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_filter_get_tunes_json(int filter_id);\r
 \r
         // char ** hb_filter_get_keys(int filter_id);\r
-        [DllImport("hb.dll", EntryPoint = "hb_filter_get_keys", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_filter_get_keys", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_filter_get_keys(int filter_id);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_x264_encopt_name", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_x264_encopt_name", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_x264_encopt_name(IntPtr name);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_check_h264_level", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_check_h264_level", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_check_h264_level([In] [MarshalAs(UnmanagedType.LPStr)] string level, int width, int height, int fps_num, int fps_den, int interlaced, int fake_interlaced);\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_x264_param_unparse", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_x264_param_unparse", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_x264_param_unparse(\r
             int bit_depth,\r
             [In] [MarshalAs(UnmanagedType.LPStr)] string x264_preset,\r
@@ -402,63 +402,63 @@ namespace HandBrake.ApplicationServices.Interop.HbLib
             int height);\r
 \r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_get_opencl_env", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_get_opencl_env", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_get_opencl_env();\r
 \r
-        [DllImport("hb.dll", EntryPoint = "hb_qsv_available", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_qsv_available", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_qsv_available();\r
         \r
-        [DllImport("hb.dll", EntryPoint = "hb_qsv_info_init", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_qsv_info_init", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_qsv_info_init();\r
 \r
         // hb_image_t* hb_get_preview2(hb_handle_t* h, int title_idx, int picture, hb_geometry_settings_t* geo, int deinterlace);\r
-        [DllImport("hb.dll", EntryPoint = "hb_get_preview2", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_get_preview2", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_get_preview2(IntPtr hbHandle, int title_idx, int preview_idx,  ref hb_geometry_settings_s geo, int deinterlace);\r
 \r
         // void hb_image_close(hb_image_t **_image);\r
-        [DllImport("hb.dll", EntryPoint = "hb_image_close", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_image_close", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_image_close(IntPtr image);\r
 \r
         /* JSON API */\r
 \r
         // char     * hb_get_title_set_json(hb_handle_t * h);\r
-        [DllImport("hb.dll", EntryPoint = "hb_get_title_set_json", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_get_title_set_json", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_get_title_set_json(IntPtr hbHandle);\r
 \r
         // char     * hb_job_init_json(hb_handle_t *h, int title_index);\r
-        [DllImport("hb.dll", EntryPoint = "hb_job_init_json", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_job_init_json", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_job_init_json(IntPtr hbHandle, int title_index);\r
 \r
         // hb_job_t * hb_json_to_job(hb_handle_t * h, const char * json_job);\r
-        [DllImport("hb.dll", EntryPoint = "hb_json_to_job", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_json_to_job", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_json_to_job(IntPtr hbHandle, IntPtr json_job);\r
 \r
         // int           hb_add_json( hb_handle_t *, const char * ) \r
-        [DllImport("hb.dll", EntryPoint = "hb_add_json", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_add_json", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern int hb_add_json(IntPtr hbHandle, IntPtr json_job);\r
 \r
         //char     * hb_set_anamorphic_size_json(const char * json_param);\r
-        [DllImport("hb.dll", EntryPoint = "hb_set_anamorphic_size_json", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_set_anamorphic_size_json", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_set_anamorphic_size_json(IntPtr json_param);\r
 \r
         // char     * hb_get_state_json(hb_handle_t * h);\r
-        [DllImport("hb.dll", EntryPoint = "hb_get_state_json", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_get_state_json", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_get_state_json(IntPtr hbHandle);\r
 \r
         // char* hb_get_preview_params_json(int title_idx, int preview_idx, int deinterlace, hb_geometry_settings_t *settings)\r
-        [DllImport("hb.dll", EntryPoint = "hb_get_preview_params_json", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_get_preview_params_json", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_get_preview_params_json(int title_idx, int preview_idx, int deinterlace, ref hb_geometry_settings_s settings);\r
         \r
         //void         hb_presets_builtin_init(void);\r
-        [DllImport("hb.dll", EntryPoint = "hb_presets_builtin_init", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_presets_builtin_init", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern void hb_presets_builtin_init();\r
 \r
         // char       * hb_presets_builtin_get_json(void); // Get list of HandBrake builtin presets as json string\r
-        [DllImport("hb.dll", EntryPoint = "hb_presets_builtin_get_json", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_presets_builtin_get_json", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_presets_builtin_get_json();\r
 \r
         //     char       * hb_presets_read_file_json(const char *filename);\r
-        [DllImport("hb.dll", EntryPoint = "hb_presets_read_file_json", CallingConvention = CallingConvention.Cdecl)]\r
+        [DllImport("hb", EntryPoint = "hb_presets_read_file_json", CallingConvention = CallingConvention.Cdecl)]\r
         public static extern IntPtr hb_presets_read_file_json(IntPtr filename);\r
     }\r
 }\r