This is an example of how to use the SysSoundGetState function along with the SoundGetStateType structure.