private void LoadLibVlcDynamic()
        {
            _libvlc_new         = (libvlc_new)GetDllType(typeof(libvlc_new), "libvlc_new");
            _libvlc_get_version = (libvlc_get_version)GetDllType(typeof(libvlc_get_version), "libvlc_get_version");
            _libvlc_release     = (libvlc_release)GetDllType(typeof(libvlc_release), "libvlc_release");

            _libvlc_media_new_path = (libvlc_media_new_path)GetDllType(typeof(libvlc_media_new_path), "libvlc_media_new_path");
            _libvlc_media_player_new_from_media = (libvlc_media_player_new_from_media)GetDllType(typeof(libvlc_media_player_new_from_media), "libvlc_media_player_new_from_media");
            _libvlc_media_release = (libvlc_media_release)GetDllType(typeof(libvlc_media_release), "libvlc_media_release");

            _libvlc_video_get_size        = (libvlc_video_get_size)GetDllType(typeof(libvlc_video_get_size), "libvlc_video_get_size");
            _libvlc_audio_get_track_count = (libvlc_audio_get_track_count)GetDllType(typeof(libvlc_audio_get_track_count), "libvlc_audio_get_track_count");
            _libvlc_audio_get_track       = (libvlc_audio_get_track)GetDllType(typeof(libvlc_audio_get_track), "libvlc_audio_get_track");
            _libvlc_audio_set_track       = (libvlc_audio_set_track)GetDllType(typeof(libvlc_audio_set_track), "libvlc_audio_set_track");
            _libvlc_video_take_snapshot   = (libvlc_video_take_snapshot)GetDllType(typeof(libvlc_video_take_snapshot), "libvlc_video_take_snapshot");

            _libvlc_audio_get_volume = (libvlc_audio_get_volume)GetDllType(typeof(libvlc_audio_get_volume), "libvlc_audio_get_volume");
            _libvlc_audio_set_volume = (libvlc_audio_set_volume)GetDllType(typeof(libvlc_audio_set_volume), "libvlc_audio_set_volume");

            _libvlc_media_player_play         = (libvlc_media_player_play)GetDllType(typeof(libvlc_media_player_play), "libvlc_media_player_play");
            _libvlc_media_player_stop         = (libvlc_media_player_stop)GetDllType(typeof(libvlc_media_player_stop), "libvlc_media_player_stop");
            _libvlc_media_player_pause        = (libvlc_media_player_pause)GetDllType(typeof(libvlc_media_player_pause), "libvlc_media_player_pause");
            _libvlc_media_player_set_hwnd     = (libvlc_media_player_set_hwnd)GetDllType(typeof(libvlc_media_player_set_hwnd), "libvlc_media_player_set_hwnd");
            _libvlc_media_player_is_playing   = (libvlc_media_player_is_playing)GetDllType(typeof(libvlc_media_player_is_playing), "libvlc_media_player_is_playing");
            _libvlc_media_player_get_time     = (libvlc_media_player_get_time)GetDllType(typeof(libvlc_media_player_get_time), "libvlc_media_player_get_time");
            _libvlc_media_player_set_time     = (libvlc_media_player_set_time)GetDllType(typeof(libvlc_media_player_set_time), "libvlc_media_player_set_time");
            _libvlc_media_player_get_fps      = (libvlc_media_player_get_fps)GetDllType(typeof(libvlc_media_player_get_fps), "libvlc_media_player_get_fps");
            _libvlc_media_player_get_state    = (libvlc_media_player_get_state)GetDllType(typeof(libvlc_media_player_get_state), "libvlc_media_player_get_state");
            _libvlc_media_player_get_length   = (libvlc_media_player_get_length)GetDllType(typeof(libvlc_media_player_get_length), "libvlc_media_player_get_length");
            _libvlc_media_list_player_release = (libvlc_media_list_player_release)GetDllType(typeof(libvlc_media_list_player_release), "libvlc_media_list_player_release");
            _libvlc_media_player_get_rate     = (libvlc_media_player_get_rate)GetDllType(typeof(libvlc_media_player_get_rate), "libvlc_media_player_get_rate");
            _libvlc_media_player_set_rate     = (libvlc_media_player_set_rate)GetDllType(typeof(libvlc_media_player_set_rate), "libvlc_media_player_set_rate");
            _libvlc_media_player_next_frame   = (libvlc_media_player_next_frame)GetDllType(typeof(libvlc_media_player_next_frame), "libvlc_media_player_next_frame");
            _libvlc_video_set_callbacks       = (libvlc_video_set_callbacks)GetDllType(typeof(libvlc_video_set_callbacks), "libvlc_video_set_callbacks");
            _libvlc_video_set_format          = (libvlc_video_set_format)GetDllType(typeof(libvlc_video_set_format), "libvlc_video_set_format");
            _libvlc_audio_get_delay           = (libvlc_audio_get_delay)GetDllType(typeof(libvlc_audio_get_delay), "libvlc_audio_get_delay");
        }
Example #2
0
        private void LoadLibVlcDynamic()
        {
            _libvlc_new = (libvlc_new)GetDllType(typeof(libvlc_new), "libvlc_new");
            _libvlc_get_version = (libvlc_get_version)GetDllType(typeof(libvlc_get_version), "libvlc_get_version");
            _libvlc_release = (libvlc_release)GetDllType(typeof(libvlc_release), "libvlc_release");

            _libvlc_media_new_path = (libvlc_media_new_path)GetDllType(typeof(libvlc_media_new_path), "libvlc_media_new_path");
            _libvlc_media_player_new_from_media = (libvlc_media_player_new_from_media)GetDllType(typeof(libvlc_media_player_new_from_media), "libvlc_media_player_new_from_media");
            _libvlc_media_release = (libvlc_media_release)GetDllType(typeof(libvlc_media_release), "libvlc_media_release");

            _libvlc_video_get_size = (libvlc_video_get_size)GetDllType(typeof(libvlc_video_get_size), "libvlc_video_get_size");
            _libvlc_audio_get_track_count = (libvlc_audio_get_track_count)GetDllType(typeof(libvlc_audio_get_track_count), "libvlc_audio_get_track_count");
            _libvlc_audio_get_track = (libvlc_audio_get_track)GetDllType(typeof(libvlc_audio_get_track), "libvlc_audio_get_track");
            _libvlc_audio_set_track = (libvlc_audio_set_track)GetDllType(typeof(libvlc_audio_set_track), "libvlc_audio_set_track");
            _libvlc_video_take_snapshot = (libvlc_video_take_snapshot)GetDllType(typeof(libvlc_video_take_snapshot), "libvlc_video_take_snapshot");

            _libvlc_audio_get_volume = (libvlc_audio_get_volume)GetDllType(typeof(libvlc_audio_get_volume), "libvlc_audio_get_volume");
            _libvlc_audio_set_volume = (libvlc_audio_set_volume)GetDllType(typeof(libvlc_audio_set_volume), "libvlc_audio_set_volume");

            _libvlc_media_player_play = (libvlc_media_player_play)GetDllType(typeof(libvlc_media_player_play), "libvlc_media_player_play");
            _libvlc_media_player_stop = (libvlc_media_player_stop)GetDllType(typeof(libvlc_media_player_stop), "libvlc_media_player_stop");
            _libvlc_media_player_pause = (libvlc_media_player_pause)GetDllType(typeof(libvlc_media_player_pause), "libvlc_media_player_pause");
            _libvlc_media_player_set_hwnd = (libvlc_media_player_set_hwnd)GetDllType(typeof(libvlc_media_player_set_hwnd), "libvlc_media_player_set_hwnd");
            _libvlc_media_player_is_playing = (libvlc_media_player_is_playing)GetDllType(typeof(libvlc_media_player_is_playing), "libvlc_media_player_is_playing");
            _libvlc_media_player_get_time = (libvlc_media_player_get_time)GetDllType(typeof(libvlc_media_player_get_time), "libvlc_media_player_get_time");
            _libvlc_media_player_set_time = (libvlc_media_player_set_time)GetDllType(typeof(libvlc_media_player_set_time), "libvlc_media_player_set_time");
            _libvlc_media_player_get_fps = (libvlc_media_player_get_fps)GetDllType(typeof(libvlc_media_player_get_fps), "libvlc_media_player_get_fps");
            _libvlc_media_player_get_state = (libvlc_media_player_get_state)GetDllType(typeof(libvlc_media_player_get_state), "libvlc_media_player_get_state");
            _libvlc_media_player_get_length = (libvlc_media_player_get_length)GetDllType(typeof(libvlc_media_player_get_length), "libvlc_media_player_get_length");
            _libvlc_media_list_player_release = (libvlc_media_list_player_release)GetDllType(typeof(libvlc_media_list_player_release), "libvlc_media_list_player_release");
            _libvlc_media_player_get_rate = (libvlc_media_player_get_rate)GetDllType(typeof(libvlc_media_player_get_rate), "libvlc_media_player_get_rate");
            _libvlc_media_player_set_rate = (libvlc_media_player_set_rate)GetDllType(typeof(libvlc_media_player_set_rate), "libvlc_media_player_set_rate");
            _libvlc_media_player_next_frame = (libvlc_media_player_next_frame)GetDllType(typeof(libvlc_media_player_next_frame), "libvlc_media_player_next_frame");
            _libvlc_video_set_callbacks = (libvlc_video_set_callbacks)GetDllType(typeof(libvlc_video_set_callbacks), "libvlc_video_set_callbacks");
            _libvlc_video_set_format = (libvlc_video_set_format)GetDllType(typeof(libvlc_video_set_format), "libvlc_video_set_format");
            _libvlc_audio_get_delay = (libvlc_audio_get_delay)GetDllType(typeof(libvlc_audio_get_delay), "libvlc_audio_get_delay");
        }
        void ConnectFunctionDelegates()
        {
            IntPtr pAddressOf_libvlc_new = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_new");
            dlibvlc_new = (libvlc_new)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_new, typeof(libvlc_new));

            IntPtr pAddressOf_libvlc_release = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_release");
            dlibvlc_release = (libvlc_release)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_release, typeof(libvlc_release));

            IntPtr pAddressOf_libvlc_media_new_location = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_new_location");
            dlibvlc_media_new_location = (libvlc_media_new_location)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_new_location, typeof(libvlc_media_new_location));

            IntPtr pAddressOf_libvlc_media_new_path = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_new_path");
            dlibvlc_media_new_path = (libvlc_media_new_path)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_new_path, typeof(libvlc_media_new_path));

            IntPtr pAddressOf_libvlc_media_release = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_release");
            dlibvlc_media_release = (libvlc_media_release)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_release, typeof(libvlc_media_release));

            IntPtr pAddressOf_libvlc_media_player_new_from_media = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_new_from_media");
            dlibvlc_media_player_new_from_media = (libvlc_media_player_new_from_media)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_new_from_media, typeof(libvlc_media_player_new_from_media));

            IntPtr pAddressOf_libvlc_media_player_release = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_release");
            dlibvlc_media_player_release = (libvlc_media_player_release)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_release, typeof(libvlc_media_player_release));

            IntPtr pAddressOf_libvlc_media_player_set_hwnd = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_set_hwnd");
            dlibvlc_media_player_set_hwnd = (libvlc_media_player_set_hwnd)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_set_hwnd, typeof(libvlc_media_player_set_hwnd));

            IntPtr pAddressOf_libvlc_media_player_get_media = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_get_media");
            dlibvlc_media_player_get_media = (libvlc_media_player_get_media)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_get_media, typeof(libvlc_media_player_get_media));

            IntPtr pAddressOf_libvlc_media_player_set_media = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_set_media");
            dlibvlc_media_player_set_media = (libvlc_media_player_set_media)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_set_media, typeof(libvlc_media_player_set_media));

            IntPtr pAddressOf_libvlc_media_player_play = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_play");
            dlibvlc_media_player_play = (libvlc_media_player_play)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_play, typeof(libvlc_media_player_play));

            IntPtr pAddressOf_libvlc_media_player_is_playing = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_is_playing");
            dlibvlc_media_player_is_playing = (libvlc_media_player_is_playing)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_is_playing, typeof(libvlc_media_player_is_playing));

            IntPtr pAddressOf_libvlc_media_player_pause = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_pause");
            dlibvlc_media_player_pause = (libvlc_media_player_pause)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_pause, typeof(libvlc_media_player_pause));

            IntPtr pAddressOf_libvlc_media_player_stop = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_stop");
            dlibvlc_media_player_stop = (libvlc_media_player_stop)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_stop, typeof(libvlc_media_player_stop));

            IntPtr pAddressOf_libvlc_media_player_get_state = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_get_state");
            dlibvlc_media_player_get_state = (libvlc_media_player_get_state)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_get_state, typeof(libvlc_media_player_get_state));

            IntPtr pAddressOf_libvlc_media_player_is_seekable = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_is_seekable");
            dlibvlc_media_player_is_seekable = (libvlc_media_player_is_seekable)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_is_seekable, typeof(libvlc_media_player_is_seekable));

            IntPtr pAddressOf_libvlc_media_player_get_time = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_get_time");
            dlibvlc_media_player_get_time = (libvlc_media_player_get_time)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_get_time, typeof(libvlc_media_player_get_time));

            IntPtr pAddressOf_libvlc_media_player_set_time = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_set_time");
            dlibvlc_media_player_set_time = (libvlc_media_player_set_time)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_set_time, typeof(libvlc_media_player_set_time));

            IntPtr pAddressOf_libvlc_media_player_get_length = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_get_length");
            dlibvlc_media_player_get_length = (libvlc_media_player_get_length)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_get_length, typeof(libvlc_media_player_get_length));

            IntPtr pAddressOf_libvlc_media_player_get_position = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_get_position");
            dlibvlc_media_player_get_position = (libvlc_media_player_get_position)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_get_position, typeof(libvlc_media_player_get_position));

            IntPtr pAddressOf_libvlc_media_player_set_position = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_set_position");
            dlibvlc_media_player_set_position = (libvlc_media_player_set_position)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_set_position, typeof(libvlc_media_player_set_position));

            IntPtr pAddressOf_libvlc_media_player_set_chapter = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_set_chapter");
            dlibvlc_media_player_set_chapter = (libvlc_media_player_set_chapter)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_set_chapter, typeof(libvlc_media_player_set_chapter));

            IntPtr pAddressOf_libvlc_media_player_get_chapter = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_get_chapter");
            dlibvlc_media_player_get_chapter = (libvlc_media_player_get_chapter)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_get_chapter, typeof(libvlc_media_player_get_chapter));

            IntPtr pAddressOf_libvlc_media_player_get_chapter_count = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_get_chapter_count");
            dlibvlc_media_player_get_chapter_count = (libvlc_media_player_get_chapter_count)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_get_chapter_count, typeof(libvlc_media_player_get_chapter_count));

            IntPtr pAddressOf_libvlc_media_player_get_chapter_count_for_title = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_get_chapter_count_for_title");
            dlibvlc_media_player_get_chapter_count_for_title = (libvlc_media_player_get_chapter_count_for_title)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_get_chapter_count_for_title, typeof(libvlc_media_player_get_chapter_count_for_title));

            IntPtr pAddressOf_libvlc_media_player_set_title = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_set_title");
            dlibvlc_media_player_set_title = (libvlc_media_player_set_title)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_set_title, typeof(libvlc_media_player_set_title));

            IntPtr pAddressOf_libvlc_media_player_previous_chapter = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_previous_chapter");
            dlibvlc_media_player_previous_chapter = (libvlc_media_player_previous_chapter)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_previous_chapter, typeof(libvlc_media_player_previous_chapter));

            IntPtr pAddressOf_libvlc_media_player_next_chapter = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_next_chapter");
            dlibvlc_media_player_next_chapter = (libvlc_media_player_next_chapter)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_next_chapter, typeof(libvlc_media_player_next_chapter));

            IntPtr pAddressOf_libvlc_media_player_next_frame = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_next_frame");
            dlibvlc_media_player_next_frame = (libvlc_media_player_next_frame)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_next_frame, typeof(libvlc_media_player_next_frame));

            IntPtr pAddressOf_libvlc_audio_toggle_mute = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_toggle_mute");
            dlibvlc_audio_toggle_mute = (libvlc_audio_toggle_mute)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_toggle_mute, typeof(libvlc_audio_toggle_mute));

            IntPtr pAddressOf_libvlc_audio_get_volume = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_get_volume");
            dlibvlc_audio_get_volume = (libvlc_audio_get_volume)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_get_volume, typeof(libvlc_audio_get_volume));

            IntPtr pAddressOf_libvlc_audio_set_volume = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_set_volume");
            dlibvlc_audio_set_volume = (libvlc_audio_set_volume)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_set_volume, typeof(libvlc_audio_set_volume));

            IntPtr pAddressOf_libvlc_clearerr = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_clearerr");
            dlibvlc_clearerr = (libvlc_clearerr)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_clearerr, typeof(libvlc_clearerr));

            IntPtr pAddressOf_libvlc_errmsg = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_errmsg");
            dlibvlc_errmsg = (libvlc_errmsg)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_errmsg, typeof(libvlc_errmsg));

            IntPtr pAddressOf_libvlc_media_player_event_manager = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_media_player_event_manager");
            dlibvlc_media_player_event_manager = (libvlc_media_player_event_manager)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_media_player_event_manager, typeof(libvlc_media_player_event_manager));

            IntPtr pAddressOf_libvlc_event_attach = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_event_attach");
            dlibvlc_event_attach = (libvlc_event_attach)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_event_attach, typeof(libvlc_event_attach));

            IntPtr pAddressOf_libvlc_event_detach = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_event_detach");
            dlibvlc_event_detach = (libvlc_event_detach)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_event_detach, typeof(libvlc_event_detach));

            IntPtr pAddressOf_libvlc_event_type_name = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_event_type_name");
            dlibvlc_event_type_name = (libvlc_event_type_name)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_event_type_name, typeof(libvlc_event_type_name));

            IntPtr pAddressOf_libvlc_log_open = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_log_open");
            dlibvlc_log_open = (libvlc_log_open)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_log_open, typeof(libvlc_log_open));

            IntPtr pAddressOf_libvlc_log_close = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_log_close");
            dlibvlc_log_close = (libvlc_log_close)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_log_close, typeof(libvlc_log_close));

            IntPtr pAddressOf_libvlc_set_log_verbosity = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_set_log_verbosity");
            dlibvlc_set_log_verbosity = (libvlc_set_log_verbosity)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_set_log_verbosity, typeof(libvlc_set_log_verbosity));

            IntPtr pAddressOf_libvlc_log_count = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_log_count");
            dlibvlc_log_count = (libvlc_log_count)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_log_count, typeof(libvlc_log_count));

            IntPtr pAddressOf_libvlc_video_get_marquee_int = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_marquee_int");
            dlibvlc_video_get_marquee_int = (libvlc_video_get_marquee_int)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_marquee_int, typeof(libvlc_video_get_marquee_int));

            //            IntPtr pAddressOf_libvlc_video_marquee_string = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_marquee_string");
            //            dlibvlc_video_marquee_string = (libvlc_video_marquee_string)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_marquee_string, typeof(libvlc_video_marquee_string));

            IntPtr pAddressOf_libvlc_video_set_marquee_int = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_set_marquee_int");
            dlibvlc_video_set_marquee_int = (libvlc_video_set_marquee_int)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_set_marquee_int, typeof(libvlc_video_set_marquee_int));

            IntPtr pAddressOf_libvlc_video_set_marquee_string = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_set_marquee_string");
            dlibvlc_video_set_marquee_string = (libvlc_video_set_marquee_string)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_set_marquee_string, typeof(libvlc_video_set_marquee_string));

            IntPtr pAddressOf_libvlc_video_get_spu = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_spu");
            dlibvlc_video_get_spu = (libvlc_video_get_spu)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_spu, typeof(libvlc_video_get_spu));

            IntPtr pAddressOf_libvlc_video_get_spu_count = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_spu_count");
            dlibvlc_video_get_spu_count = (libvlc_video_get_spu_count)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_spu_count, typeof(libvlc_video_get_spu_count));

            IntPtr pAddressOf_libvlc_video_get_spu_description = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_spu_description");
            dlibvlc_video_get_spu_description = (libvlc_video_get_spu_description)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_spu_description, typeof(libvlc_video_get_spu_description));

            IntPtr pAddressOf_libvlc_video_set_spu = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_set_spu");
            dlibvlc_video_set_spu = (libvlc_video_set_spu)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_set_spu, typeof(libvlc_video_set_spu));

            IntPtr pAddressOf_libvlc_video_set_subtitle_file = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_set_subtitle_file");
            dlibvlc_video_set_subtitle_file = (libvlc_video_set_subtitle_file)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_set_subtitle_file, typeof(libvlc_video_set_subtitle_file));

            IntPtr pAddressOf_libvlc_toggle_fullscreen = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_toggle_fullscreen");
            dlibvlc_toggle_fullscreen = (libvlc_toggle_fullscreen)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_toggle_fullscreen, typeof(libvlc_toggle_fullscreen));

            IntPtr pAddressOf_libvlc_set_fullscreen = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_set_fullscreen");
            dlibvlc_set_fullscreen = (libvlc_set_fullscreen)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_set_fullscreen, typeof(libvlc_set_fullscreen));

            IntPtr pAddressOf_libvlc_get_fullscreen = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_get_fullscreen");
            dlibvlc_get_fullscreen = (libvlc_get_fullscreen)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_get_fullscreen, typeof(libvlc_get_fullscreen));

            IntPtr pAddressOf_libvlc_video_get_size = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_size");
            dlibvlc_video_get_size = (libvlc_video_get_size)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_size, typeof(libvlc_video_get_size));

            IntPtr pAddressOf_libvlc_video_get_scale = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_scale");
            dlibvlc_video_get_scale = (libvlc_video_get_scale)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_scale, typeof(libvlc_video_get_scale));

            IntPtr pAddressOf_libvlc_video_set_scale = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_set_scale");
            dlibvlc_video_set_scale = (libvlc_video_set_scale)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_set_scale, typeof(libvlc_video_set_scale));

            IntPtr pAddressOf_libvlc_video_get_aspect_ratio = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_aspect_ratio");
            dlibvlc_video_get_aspect_ratio = (libvlc_video_get_aspect_ratio)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_aspect_ratio, typeof(libvlc_video_get_aspect_ratio));

            IntPtr pAddressOf_libvlc_video_set_aspect_ratio = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_set_aspect_ratio");
            dlibvlc_video_set_aspect_ratio = (libvlc_video_set_aspect_ratio)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_set_aspect_ratio, typeof(libvlc_video_set_aspect_ratio));

            IntPtr pAddressOf_libvlc_video_get_title_description = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_title_description");
            dlibvlc_video_get_title_description = (libvlc_video_get_title_description)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_title_description, typeof(libvlc_video_get_title_description));

            IntPtr pAddressOf_libvlc_video_get_chapter_description = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_chapter_description");
            dlibvlc_video_get_chapter_description = (libvlc_video_get_chapter_description)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_chapter_description, typeof(libvlc_video_get_chapter_description));

            IntPtr pAddressOf_libvlc_video_get_track_count = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_track_count");
            dlibvlc_video_get_track_count = (libvlc_video_get_track_count)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_track_count, typeof(libvlc_video_get_track_count));

            IntPtr pAddressOf_libvlc_video_get_track_description = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_track_description");
            dlibvlc_video_get_track_description = (libvlc_video_get_track_description)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_track_description, typeof(libvlc_video_get_track_description));

            IntPtr pAddressOf_libvlc_video_get_track = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_track");
            dlibvlc_video_get_track = (libvlc_video_get_track)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_track, typeof(libvlc_video_get_track));

            IntPtr pAddressOf_libvlc_video_set_track = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_set_track");
            dlibvlc_video_set_track = (libvlc_video_set_track)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_set_track, typeof(libvlc_video_set_track));

            IntPtr pAddressOf_libvlc_video_take_snapshot = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_take_snapshot");
            dlibvlc_video_take_snapshot = (libvlc_video_take_snapshot)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_take_snapshot, typeof(libvlc_video_take_snapshot));

            IntPtr pAddressOf_libvlc_video_set_deinterlace = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_set_deinterlace");
            dlibvlc_video_set_deinterlace = (libvlc_video_set_deinterlace)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_set_deinterlace, typeof(libvlc_video_set_deinterlace));

            IntPtr pAddressOf_libvlc_audio_output_list_get = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_output_list_get");
            dlibvlc_audio_output_list_get = (libvlc_audio_output_list_get)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_output_list_get, typeof(libvlc_audio_output_list_get));

            IntPtr pAddressOf_libvlc_audio_output_list_release = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_output_list_release");
            dlibvlc_audio_output_list_release = (libvlc_audio_output_list_release)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_output_list_release, typeof(libvlc_audio_output_list_release));

            IntPtr pAddressOf_libvlc_audio_output_set = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_output_set");
            dlibvlc_audio_output_set = (libvlc_audio_output_set)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_output_set, typeof(libvlc_audio_output_set));

            IntPtr pAddressOf_libvlc_audio_output_device_count = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_output_device_count");
            dlibvlc_audio_output_device_count = (libvlc_audio_output_device_count)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_output_device_count, typeof(libvlc_audio_output_device_count));

            IntPtr pAddressOf_libvlc_audio_output_device_longname = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_output_device_longname");
            dlibvlc_audio_output_device_longname = (libvlc_audio_output_device_longname)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_output_device_longname, typeof(libvlc_audio_output_device_longname));

            IntPtr pAddressOf_libvlc_audio_output_device_id = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_output_device_id");
            dlibvlc_audio_output_device_id = (libvlc_audio_output_device_id)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_output_device_id, typeof(libvlc_audio_output_device_id));

            IntPtr pAddressOf_libvlc_audio_output_device_set = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_output_device_set");
            dlibvlc_audio_output_device_set = (libvlc_audio_output_device_set)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_output_device_set, typeof(libvlc_audio_output_device_set));

            IntPtr pAddressOf_libvlc_audio_output_get_device_type = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_output_get_device_type");
            dlibvlc_audio_output_get_device_type = (libvlc_audio_output_get_device_type)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_output_get_device_type, typeof(libvlc_audio_output_get_device_type));

            IntPtr pAddressOf_libvlc_audio_output_set_device_type = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_output_set_device_type");
            dlibvlc_audio_output_set_device_type = (libvlc_audio_output_set_device_type)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_output_set_device_type, typeof(libvlc_audio_output_set_device_type));

            IntPtr pAddressOf_libvlc_audio_get_track_count = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_get_track_count");
            dlibvlc_audio_get_track_count = (libvlc_audio_get_track_count)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_get_track_count, typeof(libvlc_audio_get_track_count));

            IntPtr pAddressOf_libvlc_audio_get_track_description = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_get_track_description");
            dlibvlc_audio_get_track_description = (libvlc_audio_get_track_description)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_get_track_description, typeof(libvlc_audio_get_track_description));

            IntPtr pAddressOf_libvlc_audio_get_track = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_get_track");
            dlibvlc_audio_get_track = (libvlc_audio_get_track)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_get_track, typeof(libvlc_audio_get_track));

            IntPtr pAddressOf_libvlc_audio_set_track = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_set_track");
            dlibvlc_audio_set_track = (libvlc_audio_set_track)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_set_track, typeof(libvlc_audio_set_track));

            IntPtr pAddressOf_libvlc_audio_get_channel = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_get_channel");
            dlibvlc_audio_get_channel = (libvlc_audio_get_channel)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_get_channel, typeof(libvlc_audio_get_channel));

            IntPtr pAddressOf_libvlc_audio_set_channel = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_set_channel");
            dlibvlc_audio_set_channel = (libvlc_audio_set_channel)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_set_channel, typeof(libvlc_audio_set_channel));

            IntPtr pAddressOf_libvlc_audio_get_delay = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_get_delay");
            dlibvlc_audio_get_delay = (libvlc_audio_get_delay)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_get_delay, typeof(libvlc_audio_get_delay));

            IntPtr pAddressOf_libvlc_audio_set_delay = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_audio_set_delay");
            dlibvlc_audio_set_delay = (libvlc_audio_set_delay)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_audio_set_delay, typeof(libvlc_audio_set_delay));

            IntPtr pAddressOf_libvlc_video_get_logo_int = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_get_logo_int");
            dlibvlc_video_get_logo_int = (libvlc_video_get_logo_int)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_get_logo_int, typeof(libvlc_video_get_logo_int));

            IntPtr pAddressOf_libvlc_video_set_logo_int = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_set_logo_int");
            dlibvlc_video_set_logo_int = (libvlc_video_set_logo_int)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_set_logo_int, typeof(libvlc_video_set_logo_int));

            IntPtr pAddressOf_libvlc_video_set_logo_string = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_video_set_logo_string");
            dlibvlc_video_set_logo_string = (libvlc_video_set_logo_string)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_video_set_logo_string, typeof(libvlc_video_set_logo_string));

            IntPtr pAddressOf_libvlc_track_description_release = MSMethods.GetProcAddress(pLibVlcDll, "libvlc_track_description_release");
            dlibvlc_track_description_release = (libvlc_track_description_release)Marshal.GetDelegateForFunctionPointer(pAddressOf_libvlc_track_description_release, typeof(libvlc_track_description_release));
        }