File tree 10 files changed +978
-144
lines changed
10 files changed +978
-144
lines changed Original file line number Diff line number Diff line change 1
1
// Minimal wrappers for Advapi32.dll to support basic registry manipulations
2
2
3
3
'use strict' ;
4
- var ffi = require ( 'ffi' ) ,
4
+ var ffi = require ( 'ffi-napi ' ) ,
5
5
types = require ( '../types' ) ;
6
6
7
7
// Javascript bindings for native Win32 registry APIs
Original file line number Diff line number Diff line change 1
1
// Minimnal wrappers for shell32.js
2
2
var windef = require ( '../windef' ) ,
3
- ffi = require ( 'ffi' ) ,
4
- ref = require ( 'ref' ) ;
3
+ ffi = require ( 'ffi-napi ' ) ,
4
+ ref = require ( 'ref-napi ' ) ;
5
5
6
6
var SHELLEXECUTEINFOPtr = ref . refType ( windef . SHELLEXECUTEINFO ) ;
7
7
var shell32 = new ffi . Library ( 'Shell32' , {
Original file line number Diff line number Diff line change 1
1
/* global Buffer */
2
2
'use strict' ;
3
- var ffi = require ( 'ffi' ) ,
3
+ var ffi = require ( 'ffi-napi ' ) ,
4
4
types = require ( './types' ) ,
5
5
advApi = require ( './native/adv_api' ) ,
6
6
Key = require ( './key' ) ,
7
- ref = require ( 'ref' ) ,
7
+ ref = require ( 'ref-napi ' ) ,
8
8
error = require ( './error' ) ,
9
9
windef = require ( './windef' ) ,
10
10
debug = require ( 'debug' ) ( 'windows-registry' ) ;
Original file line number Diff line number Diff line change 1
- var ref = require ( 'ref' ) ;
1
+ var ref = require ( 'ref-napi ' ) ;
2
2
3
3
var types = {
4
4
REGSAM : ref . types . ulong ,
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- var ref = require ( 'ref' ) ,
2
+ var ref = require ( 'ref-napi ' ) ,
3
3
types = require ( './types' ) ,
4
4
shell32 = require ( './native/shell32' ) ,
5
5
windef = require ( './windef' ) ,
Original file line number Diff line number Diff line change
1
+ var ref = require ( 'ref-napi' ) ;
1
2
var types = require ( './types' ) ,
2
- struct = require ( 'ref-struct' ) ,
3
- uniontype = require ( 'ref-union' ) ;
3
+ struct = require ( 'ref-struct-napi ' ) ,
4
+ uniontype = require ( 'ref-union-di' ) ( ref ) ;
4
5
5
6
// yes, this is the name in the official MSDN doc
6
7
var DUMMYUNIONNAME = uniontype ( {
You can’t perform that action at this time.
0 commit comments