Esempio n. 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));
     }
 }
Esempio n. 2
0
 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));
     }
 }