コード例 #1
0
 private void GetAudioMute()
 {
     _Part.Activate(CLSCTX.ALL, ref IIDs.IID_IAudioMute, out object result);
     if (result != null)
     {
         _AudioMute = new AudioMute(result as IAudioMute);
         _AudioMuteChangeNotification = new ControlChangeNotify(this);
         Marshal.ThrowExceptionForHR(_Part.RegisterControlChangeCallback(ref IIDs.IID_IAudioMute, _AudioMuteChangeNotification));
     }
 }
コード例 #2
0
ファイル: Part.cs プロジェクト: ming86/Spotify-Ad-Blocker
 private void GetAudioMute()
 {
     object result = null;
     _Part.Activate(CLSCTX.ALL, ref IIDs.IID_IAudioMute, out result);
     if (result != null)
     {
         _AudioMute = new AudioMute(result as IAudioMute);
         _AudioMuteChangeNotification = new ControlChangeNotify(this);
         Marshal.ThrowExceptionForHR(_Part.RegisterControlChangeCallback(ref IIDs.IID_IAudioMute, _AudioMuteChangeNotification));
     }
 }