Does anyone have some sample code that shows how to use FindFirstChangeNotification to monitor a folders changes.

The code in the API guide just shows how to do it inline, I want to be able to have this monitor run and then maybe have a callback function that is called when the actual event fires.

I am trying to monitor a folder for changes in the background of my application. When something in that folder changes, I need to perform a few minor tasks.

Thanks,