2.2.4.2.1.26 PHONE_BUTTON
The PHONE_BUTTON packet is sent to notify the application that it has detected a button press on the local phone.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
TotalSize |
|||||||||||||||||||||||||||||||
|
InitContext |
|||||||||||||||||||||||||||||||
|
fnPostProcessProcHandle |
|||||||||||||||||||||||||||||||
|
hRemotePhone |
|||||||||||||||||||||||||||||||
|
Msg |
|||||||||||||||||||||||||||||||
|
OpenContext |
|||||||||||||||||||||||||||||||
|
Param1 |
|||||||||||||||||||||||||||||||
|
Param2 |
|||||||||||||||||||||||||||||||
|
Param3 |
|||||||||||||||||||||||||||||||
|
Param4 |
|||||||||||||||||||||||||||||||
TotalSize (4 bytes): An unsigned 32-bit integer. The total size of the asynchronous event packet.
InitContext (4 bytes): An unsigned 32-bit integer. The opaque, client-specified session value that MUST be equal to the InitContext value that is specified in the original scoping of the phone Initialize request.
fnPostProcessProcHandle (4 bytes): An unsigned 32-bit integer. MUST be set to zero when sent and MUST be ignored on receipt.
hRemotePhone (4 bytes): An unsigned 32-bit integer. The handle of the client for the phone value.
Msg (4 bytes): An unsigned 32-bit integer. The packet type; MUST be set to 0x0000000E (PHONE_BUTTON).
OpenContext (4 bytes): An unsigned 32-bit integer. The opaque, client-specified context value that MUST be equal to the OpenContext value that is specified in the original scoping of the phone Open request.
-
This information MUST be passed back to the application with each completion and event that is associated with the handle of the phone. This field is not interpreted by TAPI.
Param1 (4 bytes): An unsigned 32-bit integer. The button or lamp identifier of the button that was pressed.
Param2 (4 bytes): An unsigned 32-bit integer. The mode of the button. This parameter MUST use one of the PHONEBUTTONMODE_Constants.
Param3 (4 bytes): An unsigned 32-bit integer. Specifies whether this is a button-down event or a button-up event. This parameter MUST use one of the PHONEBUTTONSTATE_Constants.
Param4 (4 bytes): An unsigned 32-bit integer. This MUST be ignored on receipt and can be any value.