NvtSetCursorPos Function  
 
BOOL WINAPI NvtSetCursorPos(
  HDISPLAY hDisplay,  
  INT nCursorX,  
  INT nCursorY  
);

The NvtSetCursorPos function sets the current cursor column and row position on the virtual display.

Parameters

hDisplay
Handle to the virtual display.
nCursorX
New cursor column position. If this value is greater than the maximum number of columns, the current position is set to the last column on the display. The first column on the display is zero.
nCursorY
New cursor row position. If this value is greater than the maximum number of rows, the current position is set to the last row on the display. The first row on the display is zero.

Return Value

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

Remarks

The NvtSetCursorPos function sets the current cursor position on the virtual display. If the display is in origin mode (a scrolling region has been set), then the cursor row position is bound by the current region.

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.
Unicode: Implemented as Unicode and ANSI versions.

See Also

NvtGetCursorPos