https://learn.microsoft.com/en-us/windows/win32/api/endpointvolume/nf-endpointvolume-iaudioendpointvolume-getvolumerange
IAudioEndpointVolume::GetVolumeRange (endpointvolume.h) - Win32 apps | Microsoft Learn
The GetVolumeRange method gets the volume range, in decibels, of the audio stream that enters or leaves the audio endpoint device.
happsmicrosoftlearn