The TSPI_phoneGetRing function enables an application to query the specified open phone device as to its current ring mode.
LONG TSPI_phoneGetRing(
HDRVPHONE hdPhone,
LPDWORD lpdwRingMode,
LPDWORD lpdwVolume
);
Returns zero if the function succeeds, or an error number if an error occurs. Possible return values are as follows:
PHONEERR_INVALPHONEHANDLE, PHONEERR_RESOURCEUNAVAIL, PHONEERR_INVALPHONESTATE, PHONEERR_OPERATIONFAILED, PHONEERR_NOMEM, PHONEERR_OPERATIONUNAVAIL.
The service provider defines the actual audible ringing patterns corresponding to each of phone's ring modes.
PHONECAPS, TSPI_phoneGetDevCaps, TSPI_phoneSetRing