When you say it doesn't work, do you mean it gives you an error or simply doesn't do anything at all? Also, did you declare the ShowCursor API?