public static bool?GetSystemSoundsMute()
        {
            Interfaces.ISimpleAudioVolume volume = GetSystemSoundsVolumeObject();
            if (volume == null)
            {
                throw new Exception("No session found for system sounds");
            }

            bool mute;

            volume.GetMute(out mute);
            Marshal.ReleaseComObject(volume);
            return(mute);
        }
        public static bool?GetApplicationMute(int pid)
        {
            Interfaces.ISimpleAudioVolume volume = GetVolumeObject(pid);
            if (volume == null)
            {
                throw new Exception("No application found for pid");
            }

            bool mute;

            volume.GetMute(out mute);
            Marshal.ReleaseComObject(volume);
            return(mute);
        }