Is there a mouse-equivalent of the functions GetKeyboardState or GetAsyncKeyState? I'd rather not have to go through window procedures just to see what's going on with the mouse. I've already searched through Google, and the only things I could find include using some outdated APIs.
EDIT: I realize that this goes into the Windows Programming section, sorry about that. I was too tired to notice that my current forum was General C++.