/mcpFunction Details LONG WINAPI phoneGetMessage( HPHONEAPP hPhoneApp, LPPHONEMESSAGE lpMessage, DWORD dwTimeout ); Parameters hPhoneApp The handle that phoneInitializeEx returns. The application must have set the PHONEINITIALIZEEXOPTION_USEEVENT option in the dwOptions member of the PHONEINITIALIZEEXPARAMS structure. lpMessage A pointer to a PHONEMESSAGE structure. Upon successful return from this function, the structure contains the next message that had been queued for delivery to the application. dwTimeout The time-out interval, in milliseconds. The function returns if the interval elapses, even if no message can be returned. If dwTimeout is zero, the function checks for a queued message and returns immediately. If dwTimeout is INFINITE, the time-out interval never elapses. Return Values Returns zero if the request succeeds or a negative number if an error occurs. Possible return values follow: PHONEERR_INVALAPPHANDLE, PHONEERR_OPERATIONFAILED, PHONEERR_INVALPOINTER, PHONEERR_NOMEM. phoneGetRing The phoneGetRing function enables an application to query the specified open phone device as to its current ring mode. Function Details LONG phoneGetRing( HPHONE hPhone, LPDWORD lpdwRingMode, LPDWORD lpdwVolume ); Parameters hPhone A handle to the open phone device. lpdwRingMode The ringing pattern with which the phone is ringing. Zero indicates that the phone is not ringing. Cisco Unified TAPI Developers Guide for Cisco Unified Communications Manager, Release 15 and SUs 279 Basic TAPI Implementation phoneGetRing
