Do you know if this works on Mac?
It does not. You would need to write a DyLib for that, this might be a clue if Apple didn't change API since then.
Feel free to send a PR if you manage to figure it out! Someone else said that they were looking into making this work with Linux.