De GetCursorPos functie haalt de positie van de cursor, in schermcoördinaten.
BOOL GetCursorPos () LPPOINT lpPoint / / adres van de structuur voor de cursor positie);
Als de functie slaagt, is de retourwaarde aan nul.
Als de functie mislukt, is de retourwaarde nul. Te krijgen uitgebreide foutinformatie, Bel GetLastError.
De cursorpositie wordt altijd gegeven in schermcoördinaten en wordt niet beïnvloed door de wijze van toewijzing van het venster met de cursor.
Het aanroepende proces moeten WINSTA_READATTRIBUTES toegang tot het venster station.
nbsp; Windows &NT: versie 3.1 of hoger vereist.
Windows:Windows 95 of hoger vereist.
Windows CE:Niet-ondersteunde.
Header:Verklaard in winuser.h.
Bibliotheek importeren:User32.lib gebruiken.
Cursors overzicht, Cursor functioneert, ClipCursor, punt, SetCursor, SetCursorPos, ShowCursor