VioSetCurType (FAPI): Difference between revisions
Appearance
Created page with "==Description== This call sets the cursor type. ==Syntax== <PRE> VioSetCurType (CursorData, VioHandle) </PRE> ==Parameters== ; CursorData (PVIOCURSORINFO) - input : A..." |
mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
This call sets the cursor type. | This call sets the cursor type. | ||
==Syntax== | ==Syntax== | ||
VioSetCurType (CursorData, VioHandle) | |||
VioSetCurType | |||
==Parameters== | ==Parameters== | ||
; | ;CursorData (P[[VIOCURSORINFO]]) - input : Address of the cursor characteristics structure | ||
;VioHandle ([[HVIO]]) - input : This must be zero unless the caller is a Presentation Manager application, in which case it must be the value returned by VioGetPs. | |||
; VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, in which case it must be the value returned by VioGetPs. | |||
== | ==Return Code== | ||
;rc (USHORT) - return:Return code descriptions are: | |||
*0 NO_ERROR | |||
*355 ERROR_VIO_MODE | |||
*356 ERROR_VIO_WIDTH | |||
*421 ERROR_VIO_INVALID_PARMS | |||
*436 ERROR_VIO_INVALID_HANDLE | |||
*465 ERROR_VIO_DETACHED | |||
== | ==Bindings== | ||
=== C | === C === | ||
<PRE> | <PRE> | ||
typedef struct _VIOCURSORINFO { /* vioci */ | typedef struct _VIOCURSORINFO { /* vioci */ | ||
Line 59: | Line 38: | ||
</PRE> | </PRE> | ||
===MASM | ===MASM=== | ||
<PRE> | <PRE> | ||
VIOCURSORINFO struc | VIOCURSORINFO struc | ||
Line 79: | Line 58: | ||
==Related Functions== | ==Related Functions== | ||
* | * VioGetCurType | ||
[[Category: | [[Category:Vio]] |
Latest revision as of 15:47, 28 February 2020
This call sets the cursor type.
Syntax
VioSetCurType (CursorData, VioHandle)
Parameters
- CursorData (PVIOCURSORINFO) - input
- Address of the cursor characteristics structure
- VioHandle (HVIO) - input
- This must be zero unless the caller is a Presentation Manager application, in which case it must be the value returned by VioGetPs.
Return Code
- rc (USHORT) - return
- Return code descriptions are:
- 0 NO_ERROR
- 355 ERROR_VIO_MODE
- 356 ERROR_VIO_WIDTH
- 421 ERROR_VIO_INVALID_PARMS
- 436 ERROR_VIO_INVALID_HANDLE
- 465 ERROR_VIO_DETACHED
Bindings
C
typedef struct _VIOCURSORINFO { /* vioci */ USHORT yStart; /*cursor start line */ USHORT cEnd; /* cursor end line */ USHORT cx; /* cursor width */ USHORT attr; /* -1=hidden cursor, any other=normal cursor */ } VIOCURSORINFO; #define INCL_VIO USHORT rc = VioSetCurType(CursorData, VioHandle); PVIOCURSORINFO CursorData; /* Cursor characteristics */ HVIO VioHandle; /* Video handle */ USHORT rc; /* return code */
MASM
VIOCURSORINFO struc vioci_yStart dw ? ;cursor start line vioci_cEnd dw ? ;cursor end line vioci_cx dw ? ;cursor width vioci_attr dw ? ;-1=hidden cursor, any other=normal cursor VIOCURSORINFO ends EXTRN VioSetCurType:FAR INCL_VIO EQU 1 PUSH@ OTHER CursorData ;Cursor characteristics PUSH WORD VioHandle ;Video handle CALL VioSetCurType Returns WORD
Related Functions
- VioGetCurType