Start Host Notification (23)
|
Top
Previous
Next
|
This function enables you to notify your WinHLLAPI application of changes in the Host Session Presentation Space (PS) or Operation Information Area (OIA).
Prerequisite Functions
There are no prerequisite functions for this function.
Syntax
WinHLLAPIAsync (hWnd, lpwFunction, lpbyString, lpwLength, lpwReturnCode)
Call Parameters
Parameter
|
Description
|
Data String
|
A 7-byte string in the following format:
• | Byte 1 Short name session ID of the desired Host session, or space or null for the current Host session. |
• | Byte 2 Notification mode. "P" for presentation space update only, "O" for OIA update only, "B" for both presentation space and OIA updates. When calling WinHLLAPIAsync, this position can be "A". |
• | Byte 3-6 Not used. Provided for compatibility with older applications. |
• | Byte 7 Reserved or replaced with one of the following if using WinHLLAPIAsync and A in byte 2: P for presentation space update only, O for OIA update only; and B for both presentation space and OIA updates. |
|
Data Length
|
Length of Host event buffer (256 recommended).
|
PS Position
|
NA
|
Return Parameters
Parameter
|
Description
|
Data String
|
Same as Data String on the call.
|
Return Codes
Code
|
Description
|
WHLLOK
|
Host notification enabled.
|
WHLLNOTCONNECTED
|
The specified Host session is invalid.
|
WHLLPARAMETERERROR
|
One of more parameters are invalid.
|
WHLLSYSERROR
|
The function failed due to a system error.
|
WHLLCANCEL
|
The asynchronous function was cancelled.
|
Remarks
Once enabled, Host notification is enabled until you call Stop Host Notification (25) or WinHLLAPICancelAsyncRequest(). The function initiates host notification and immediately returns control to your Windows HLLAPI application. This frees your application to perform other tasks while waiting for host updates. When an update occurs, the function will notify the window specified by hWnd with the registered message WinHLLAPIAsync.
|