firefox addon - Can js-ctypes use gecko api? -
so js-ctypes way have used it, calling winapi. use mozilla functions. possible?
specifically i'm trying use 1 here: http://mxr.mozilla.org/mozilla-central/source/widget/windows/wintaskbar.cpp#244
you cannot call c++
stuff directly, exported or not, js-ctypes supports plain c
abi. unfortunately there no common c++
abi anyway; each compiler uses it's own grant name mangling scheme , thiscall
calling convention...
however, if really, really, really, wanted working in mozilla-land, have @ glue
code, - in theory @ least - used js-ctypes (although never seen done).
in particular case, nwiwintaskbar.defaultgroupid
will return verbatim result of wintaskbar::getappusermodelid
, there no need go through js-ctypes in first place.
Comments
Post a Comment