win32-def
Definitions of Windows Date Types for node-ffi
What can I do with this?
Write node-ffi calling win32 native functions code by Typescript with Types support.
Installing
npm install --save win32-def
Usage
// struct usage by ref-struct; // https://msdn.microsoft.com/en-us/library/windows/desktop/dd162805(v=vs.85).aspx;point.x = 100;point.y = 200;console.logpoint;
;;; ;; // ← here the types buf.writeInt32LE12345, 0; // const hInstance =<W.FFIBuffer> Buffer.alloc(process.arch === 'x64' ? 8 : 4);; // W.HINSTANCE is 'int64*' under x64, 'int32*' under ia32knl32.GetModuleHandleExW0, null, hInstance;