windows-registry
Version:
Read and Write to the Windows registry in-process from Node.js. Easily set application file associations and other goodies & such.
17 lines (14 loc) • 402 B
JavaScript
// Minimnal wrappers for shell32.js
var windef = require('../windef'),
ffi = require('ffi'),
ref = require('ref');
var SHELLEXECUTEINFOPtr = ref.refType(windef.SHELLEXECUTEINFO);
var shell32 = new ffi.Library('Shell32', {
/*
BOOL ShellExecuteEx(
_Inout_ SHELLEXECUTEINFO *pExecInfo
);
*/
ShellExecuteExA: ['bool', [SHELLEXECUTEINFOPtr]]
});
module.exports = shell32;