Visual C#

 private void CaptureEvent(int hwnd, int x1, int y1, int x2, int y2)
 {
     // perform the capture
         

 }

................


m_wMonitor.WEvent += new _IWMonitorXEvents_WEventEventHandler(CaptureEvent);

Comments