VioGetDeviceCellSize: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Returns the size of the current character cell in pels. | Returns the size of the current character cell in pels. | ||
==Syntax== | ==Syntax== | ||
VioGetDeviceCellSize(Height, Width, hvps) | |||
==Parameters== | ==Parameters== | ||
; Height (PULONG) - input : Pointer to the height of the character cell in pels. | ;Height (PULONG) - input : Pointer to the height of the character cell in pels. | ||
; Width (PULONG) - input : Pointer to the width of the character cell in pels. | ;Width (PULONG) - input : Pointer to the width of the character cell in pels. | ||
; hvps (HVIO) - input : VIO presentation-space handle. | ;hvps (HVIO) - input : VIO presentation-space handle. | ||
This is a value returned by VioCreatePS. | :This is a value returned by [[VioCreatePS]]. | ||
==Return Code== | ==Return Code== | ||
;rc (APIRET) - returns:VioGetDeviceCellSize returns one of the following values: | |||
VioGetDeviceCellSize returns one of the following values: | |||
* 0 NO_ERROR | * 0 NO_ERROR | ||
* 421 ERROR_VIO_INVALID_PARMS | * 421 ERROR_VIO_INVALID_PARMS | ||
Line 28: | Line 17: | ||
==Remarks== | ==Remarks== | ||
In OS/2 2.x, hvps cannot be 0. | In OS/2 2.x, hvps cannot be 0. | ||
[[Category:Vio]] | [[Category:Vio]] |
Latest revision as of 14:36, 26 July 2018
Returns the size of the current character cell in pels.
Syntax
VioGetDeviceCellSize(Height, Width, hvps)
Parameters
- Height (PULONG) - input
- Pointer to the height of the character cell in pels.
- Width (PULONG) - input
- Pointer to the width of the character cell in pels.
- hvps (HVIO) - input
- VIO presentation-space handle.
- This is a value returned by VioCreatePS.
Return Code
- rc (APIRET) - returns
- VioGetDeviceCellSize returns one of the following values:
- 0 NO_ERROR
- 421 ERROR_VIO_INVALID_PARMS
- 436 ERROR_VIO_INVALID_HANDLE
Remarks
In OS/2 2.x, hvps cannot be 0.