0

I want to write a C++ class that can be hooked with a windows event handle create by the CreateEvent function, so that when the event is signaled, it can be handled by the class I write. Is there a way to do so?

Specifically, I want to create a class that can handle the skeleton data generated by Kinect. The data are dealt by firstly creating a handle to an event object using CreateEvent function, and then call the

m_pNuiSensor->NuiSkeletonTrackingEnable( 
            /* [in] */ HANDLE hNextFrameEvent,
            /* [in] */ DWORD dwFlags)

function so that when the frame data is available, the hNextFrameEvent will be signaled. I was wondering if I can handle the event when it is signaled in the class I created.

Thanks!

4

0 回答 0