I have a non-interface or worker thread that I would like to acquire the mouse position. I tried GetMessagePos, but that only returns NULL. I'm assuming this is because my thread has no message pump.
Is the only way to get the mouse position to create message pump? Would a thread message pump work? Can I "hook" myself into something to acquire the info? Why isn't there a function just called DWORD GetMousePos()?!?!?
There is a function, "GetMouseMovePointsEx" which retrieves history of mouse points, but it looks like it needs a mouse point from WM_MOUSEMOVE, so no go there... plus you have to have WINVER >= 0x0500 which sucks.
All I want is the current mouse position. Any info would be great, thanks!