HP-UX SNAplus2 R7 LUA Programmer's Guide
Designing and Writing LUA Applications
LUA Entry Points for Windows Applications
WORD wVersion;
char szDescription[41];
} LUADATA;
Supplied Parameters
Supplied parameter is:
wVersionRequired
The version of Windows LUA that the application requires. SNAplus2 supports Version 1.0.
The low-order byte specifies the major version number, and the high-order byte specifies the minor version
number. For example:
Version wVersionRequired
1.0 0x0001
1.1 0x0101
2.0 0x0002
If the application can use more than one version, it should specify the highest version that it can use.
Returned Values
The return value from the function is one of the following:
0
(zero)
The application was registered successfully, and the Windows LUA software supports either the version
number specified by the application or a lower version. The application should check the version number in
the
LUADATA structure to ensure that it is high enough.
WLUAVERNOTSUPPORTED
The version number specified by the application is not supported by the Windows LUA software. The appli-
cation was not registered.
WLUAINITREJECT
The application has already called
WinRUIStartup and registered successfully. It must not call this function
more than once.
WLUASYSNOTREADY
The SNAplus2 software has not been started, or the local node is not active. The application was not registered.
WLUAFAILURE
An operating system error occurred during initialization of the Windows LUA software. The application was
not registered. Check the log files for messages indicating the cause of the failure.
If the return value from WinRUIStartup is
0 (zero), the
LUADATA structure contains information about the support
provided by the Windows LUA software. If the return value is nonzero, the contents of this structure are undefined
and the application should not check them. The parameters in this structure are as follows:
wVersion
The Windows LUA version number that the software supports, in the same format as the
wVersionRequired
parameter (see Section 2.2.2, WinRUIStartup). SNAplus2 supports Version 1.0.
If the software supports the requested version number, this parameter is set to the same value as the
wVersionRequired parameter; otherwise it is set to the highest version that the software supports, which
will be lower than the version number supplied by the application. The application must check the returned
value and take action as follows:
30