GreQueryEngineVersion

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

 * 1) define INCL_GRE_DCS
 * 2) include 

PVOID   pInstance;  /*  Pointer to instance data. */ ULONG   lFunction;  /*  High-order WORD=flags; low-order WORD=NGreQueryEngineVersion. */ LONG    rc;         /*  Return codes. */

rc = GreQueryEngineVersion(pInstance, lFunction); 