NvtGetCursorPos Function  
 
BOOL WINAPI NvtGetCursorPos(
  HDISPLAY hDisplay,  
  LPINT lpnCursorX,  
  LPINT lpnCursorY  
);

The NvtGetCursorPos function returns the current cursor column and row position on the virtual display.

Parameters

hDisplay
Handle to the virtual display.
lpnCursorX
Address of the variable that will be set to the column of the current cursor position. If this argument is a NULL pointer, the argument is ignored.
lpnCursorY
Address of the variable that will be set to the row of the current cursor position. If this argument is a NULL pointer, the argument is ignored.

Return Value

If the function succeeds, the return value is a non-zero value. If the handle to the virtual display is invalid, the function will return zero.

Requirements

Client: Requires Windows 7, Windows Vista or Windows XP.
Server: Requires Windows Server 2008 or Windows Server 2003.
Header: Include cstools7.h.
Library: Use csnvtav7.lib.

See Also

NvtConvertDisplayPos, NvtSetCursorPos