Visual C++

long hwnd = 0;
long x = 0;
long y = 0;
HRESULT hRes = capture->GetCursorInfo(&hwnd, &x, &y);
if (hRes != S_OK)
MessageBox(...);
Comments