I'm trying to write a C++ library, using v8, for node.js. My only goal is to allow javascript to call EnumWindows
, the win32 api function.
The EnumWindows
method itself takes a callback function as a parameter. It will call that function for every enumerated window, passing it the window handle.
I'm trying to make it so that it calls a javascript function for every window handle, as well. Any ideas how to do this? libuv looked promising, but that looks like I have to be the one to be creating the thread. That's not the case here.