HP-UX SNAplus2 R7 LUA Programmer's Guide
Designing and Writing LUA Applications
LUA Entry Points for Windows Applications
WLUAVERNOTSUPPORTED
The version number specified by the application is not supported by the Windows LUA software. The
application was not registered.
WLUAINITREJECT
The application has already called
WinSLIStartup 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 WinSLIStartup 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 unde
fined
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:
• If the returned version number is the same as the requested version number, the application can use this
Windows LUA implementation.
• If the returned version number is lower than the requested version number, the application can use this
Windows LUA implementation but must not attempt to use features that are not supported by the returned
version number. If it cannot do this because it requires features not available in the lower version, it
should fail its initialization and not attempt to issue any LUA verbs.
szDescription
A text string describing the Windows LUA software.
2.2.9 WinSLI
The application uses this function to issue an SLI verb. If the verb completes asynchronously, LUA will indicate
the completion by posting a message to the application’s window handle.
Before using the WinSLI call for the first time, the application must use RegisterWindowMessage to obtain the
message identifier that LUA will use for messages indicating asynchronous verb completion. For more information,
see Section 2.2.9, WinSLI.
Function Call
int WINAPI WinSLI (
HWND hWnd,
LUA_VERB_RECORD far * lpVCB
);
For the definition of the LUA_VERB_RECORD structure, see Chapter 3, LUA VCB Structure.
Supplied Parameters
Supplied parameters are:
39