I need to get the current mouse position (using GetCursorPos API) for a mouse click event occurring at a different app than mine. I have tried the SetCapture but it goes away as soon as the other window is clicked.