GreQueryEngineVersion: Difference between revisions
Appearance
Created page with "GreQueryEngineVersion returns the version number of the graphics engine. This function is supported by the graphics engine. ==Syntax== GreQueryEngineVersion(pInstance, lF..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
GreQueryEngineVersion returns the version number of the graphics engine. | GreQueryEngineVersion returns the version number of the graphics engine. | ||
This function is supported by the graphics engine. | This function is supported by the graphics engine. | ||
==Syntax== | ==Syntax== | ||
GreQueryEngineVersion(pInstance, lFunction) | GreQueryEngineVersion(pInstance, lFunction) | ||
==Parameters== | ==Parameters== | ||
;pInstance (PVOID) - input | ;pInstance (PVOID) - input:Pointer to instance data. | ||
:Pointer to instance data. | ;lFunction (ULONG) - input:High-order WORD=flags; low-order WORD=NGreQueryEngineVersion. | ||
;lFunction (ULONG) - input | |||
:High-order WORD=flags; low-order WORD=NGreQueryEngineVersion. | |||
==Return Code== | ==Return Code== | ||
;rc (LONG) - returns | ;rc (LONG) - returns:Return codes. | ||
:Return codes. | ;GreQueryEngineVersion returns the engine version number (lVersion), or it returns GPI_ALTERROR if an error occurs. For example, it might return 0X000000200L = 2.0. | ||
;GreQueryEngineVersion returns the engine version number (lVersion), or it returns GPI_ALTERROR if an error occurs. For example, it might return 0X000000200L = 2.0. | |||
==Sample Code== | ==Sample Code== |
Latest revision as of 23:25, 24 March 2020
GreQueryEngineVersion returns the version number of the graphics engine.
This function is supported by the graphics engine.
Syntax
GreQueryEngineVersion(pInstance, lFunction)
Parameters
- pInstance (PVOID) - input
- Pointer to instance data.
- lFunction (ULONG) - input
- High-order WORD=flags; low-order WORD=NGreQueryEngineVersion.
Return Code
- rc (LONG) - returns
- Return codes.
- GreQueryEngineVersion returns the engine version number (lVersion), or it returns GPI_ALTERROR if an error occurs. For example, it might return 0X000000200L = 2.0.
Sample Code
#define INCL_GRE_DCS #include <os2.h> PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreQueryEngineVersion. */ LONG rc; /* Return codes. */ rc = GreQueryEngineVersion(pInstance, lFunction);