(node.js) node-ffi, CryptProtectData/CryptUnprotectData DATA_BLOB implementation?

Currently Im use node.js+node-ffi for Windows Automation.

After latest patch Chrome encrypt all cookies (value -> encrypted_value) via Crypt32 Windows API, for decrypt it need to use CryptUnprotectData (http://msdn.microsoft.com/ru-ru/library/windows/desktop/aa380882(v=vs.85).aspx), but function have prototype with structured buffer DATA_BLOB (http://msdn.microsoft.com/ru-ru/library/windows/desktop/aa381414(v=vs.85).aspx)

Are anybody know how to make it? Need a make friendly version of function CryptUnprotectData

N.B. Im try to use ref and ref-struct - but isnt success with it.

thx