Exemplo n.º 1
0
 public static extern int get_path(CefPathKey key, cef_string_t* path);
Exemplo n.º 2
0
 public static extern int get_path(CefPathKey key, cef_string_t *path);
Exemplo n.º 3
0
 /// <summary>
 /// Retrieve the path associated with the specified |key|. Returns true on
 /// success. Can be called on any thread in the browser process.
 /// </summary>
 public static string GetPath(CefPathKey pathKey)
 {
     var n_value = new cef_string_t();
     var success = libcef.get_path(pathKey, &n_value) != 0;
     var value = cef_string_t.ToString(&n_value);
     libcef.string_clear(&n_value);
     if (!success)
     {
         throw new InvalidOperationException(
             string.Format(CultureInfo.InvariantCulture, "Failed to get path for key {0}.", pathKey)
             );
     }
     return value;
 }