https://learn.microsoft.com/en-us/windows/win32/api/tapi/nf-tapi-linegetnumrings
lineGetNumRings function (tapi.h) - Win32 apps | Microsoft Learn
The lineGetNumRings function determines the number of rings an incoming call on the given address should ring prior to answering the call.
functiontapihappsmicrosoft