Had you looked, you would've known...
This uses the SDK for function calls, right click to see the source: http://jordymoors.nl/particle/demos/function_button.html