I was wondering whether i could wrap / hook GetCursorPos and SetCursorPos

I know that it can be done, I just don't know how

If someone could help me it'd be great