static extern uint GetMessagePos();
If you change the return type from uint to int, then you can do new Point(GetMessagePos()).