html5 - Read Local Registry with Browser Based Javascript - Google Desktop API -


can use javascript in google chrome packaged app (a.k.a. browser extension) read user's local registry key (i.e. stored query url, a.k.a. search_url key google desktop)? if so, example code access appreciated!

background / detail

i trying write browser plugin opens users google desktop homepage in chrome browser. url is: http://127.0.0.1:4664/&s={search_url key}

according google desktop api docs, can accomplished using http/xml-based query api. i'm hoping there html5 specification (e.g. file api) provides standard procedure read local files, given users permission.

in order this, need read access local search_url key. depending on user's os, api doc offers 2 possible local file locations contain search_url key:

windows

hkey_current_user\software\google\google desktop\api\search_url 

mac os x

cfstringref val = cfpreferencescopyvalue(     cfstr("search_url"),     cfstr("com.google.desktop.webserver"),     kcfpreferencescurrentuser,     kcfpreferencesanyhost); if (val) {   // act on value   cfrelease(val); }   

alternative approach windows os

apparently, npapi (http://code.google.com/chrome/extensions/npapi.html) allows chrome app run dll in windows, i'm not familiar windows api or vb , avoid using them, if possible.

unfortunately cannot access windows registery unless using npapi.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -