Jump to content

VioGetCurType

From EDM2
Revision as of 00:09, 10 June 2016 by Martini (talk | contribs) (Created page with "==Description== Returns the cursor type. ==Syntax== <PRE> #define INCL_VIO #include <os2.h> PVIOCURSORINFO CursorData; Cursor characteristics.: HVIO V...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Returns the cursor type.

Syntax

#define INCL_VIO
#include <os2.h>

PVIOCURSORINFO    CursorData;  /*  Cursor characteristics. */
HVIO              VioHandle;   /*  Presentation-space handle. */
APIRET            rc;          /*  Return code. */

rc = VioGetCurType(CursorData, VioHandle);

Parameters

CursorData (PVIOCURSORINFO) - output
Cursor characteristics.

Address of the cursor-characteristics structure.

VioHandle (HVIO) - input
Presentation-space handle.

This must be 0, unless the caller is a Presentation Manager application; in this case, it must be the value returned by VioCreatePS

Return Code

rc (APIRET) - returns

VioGetCurType returns one of the following values:

  • 0 NO_ERROR
  • 355 ERROR_VIO_MODE
  • 421 ERROR_VIO_INVALID_PARMS
  • 436 ERROR_VIO_INVALID_HANDLE

Remarks

Example Code


Related Functions

  • [[OS2 API:CPI: