Example #1
0
        /// <summary>
        /// Add a plugin path (directory + file). This change may not take affect until
        /// after cef_refresh_web_plugins() is called. Can be called on any thread in the
        /// browser process.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_web_plugin_capi.h">cef/include/capi/cef_web_plugin_capi.h</see>.
        /// </remarks>
        public static void AddWebPluginPath(string path)
        {
            var path_pinned = new PinnedString(path);

            CfxApi.cfx_add_web_plugin_path(path_pinned.Obj.PinnedPtr, path_pinned.Length);
            path_pinned.Obj.Free();
        }