6 81 LceVersion

LANSA Open Guide

6.81 LceVersion

This function returns the current LANSA Open version number and displays it in a dialog box on the screen.

long

LceVersion

(BOOL

fDisplay,

 

 

 HWND

hwnd )

  

Parameters

fDisplay

A boolean to indicate whether to display the dialog box.

hwnd

A valid window handle, usually the main window for the application.

If an invalid window handle is specified, the dialog box will not be displayed.

NULL indicates that the current active window is to be used.

  

Return Values

The return value is a long integer. The major version number is in the High Word (2 bytes). The minor version number is in the Low Word (2 bytes).

Notes

  • This function can be executed at any time.