node-win32api - Asynchronous, non-blocking win32api bindings for node.js .
Install with npm install win32api.
varwin32con=require('win32con');varwin32api=require('win32api');varMessageBoxA=win32api.new('user32','MessageBoxA','LPPL','L');varresult=MessageBoxA.call(win32api.hWnd,'Hello, Win32API','test message',win32con.MB_ICONINFORMATION|win32con.MB_OK);win32api.print(result);varMessageBoxW=win32api.new('user32','MessageBoxW','LPPL','L');varresult=MessageBoxW.call(win32api.hWnd,'from utf8string','auto convert',win32con.MB_ICONINFORMATION|win32con.MB_OK);win32api.print(result);- So much implements.
- Implement accessors getter, setter and caller.
- npm
See the API documentation in the wiki.
This project uses VC++ 2008 Express (or later) and Python 2.6 (or later) . (When using Python 2.5, it needs multiprocessing 2.5 back port .)
Bulding also requires node-gyp to be installed. You can do this with npm:
npm install -g node-gyp
To obtain and build the bindings:
git clone git://github.com/idobatter/node-win32api.git
cd node-win32api
node-gyp configure
node-gyp build
You can also use npm to download and install them:
npm install win32api
mocha is required to run unit tests.
npm install -g mocha
nmake /a test
Inspired WIN32API
node-win32api is BSD licensed.