Skip to content

Commit

Permalink
dd
Browse files Browse the repository at this point in the history
  • Loading branch information
TinySec committed Oct 15, 2016
1 parent 744644b commit 5e926cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notes/node_ffi.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ffi fast reference

```javascript
ffi.Library(libraryFile, { functionSymbol: [ returnType, [ arg1Type, arg2Type, ... ], [option] ] , [lib] } );
ffi.Library(libraryFile, { functionSymbol: [ returnType, [ arg1Type, arg2Type, ... ], [option] ] } );
```
option list
* abi
Expand Down Expand Up @@ -34,7 +34,7 @@ const HANDLE = ref.types.void;
var kernel32 = ffi.Library( 'kernel32.dll' ,
{
// ULONG __stdcall GetLogicalDrives();
'GetLogicalDrives' : [ 'ulong' , [] , {abi : ffi.FFI_STDCALL } , null ],
'GetLogicalDrives' : [ 'ulong' , [] , {abi : ffi.FFI_STDCALL } ],

// BOOL __stdcall CloseHandle(HANDLE hHandle);
"CloseHandle" : [ 'int' , [ HANDLE ], { abi : ffi.FFI_STDCALL } ] ,
Expand Down

0 comments on commit 5e926cb

Please sign in to comment.