JSPM

wtypes

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q21440F
  • License MIT

windows types for node ffi

Package Exports

  • wtypes

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wtypes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

wtypes

windows types for node ffi

const printf = require('cprintf').printf;
const wtypes = require('wtypes');
const ffi = require('ffi');

var kernel32 = ffi.Library( 'kernel32.dll' ,
{
    // ULONG __stdcall GetLogicalDrives();
    'GetLogicalDrives' : [ wtypes.ULONG , [] , {abi : ffi.FFI_STDCALL }  ],
});

var user32 = ffi.Library( 'user32.dll' ,
{
    // HWND WINAPI GetDesktopWindow(void);
    "GetDesktopWindow" : [ wtypes.HWND , [] , { abi : ffi.FFI_STDCALL }  ] ,
});

printf('DesktopWindow hWnd = %s\n' , user32.GetDesktopWindow() );