private void TestBandwidth() { int i1, i2, i3; IWMBandwidthSharing bs, bs2; m_pProfile3.GetBandwidthSharingCount(out i1); m_pProfile3.CreateNewBandwidthSharing(out bs); bs.AddStream(1); bs.SetBandwidth(333, 1234); m_pProfile3.AddBandwidthSharing(bs); m_pProfile3.GetBandwidthSharingCount(out i2); Debug.Assert(i2 == i1 + 1); int br, bw; m_pProfile3.GetBandwidthSharing(0, out bs2); bs2.GetBandwidth(out br, out bw); Debug.Assert(bw == 1234); m_pProfile3.RemoveBandwidthSharing(bs2); m_pProfile3.GetBandwidthSharingCount(out i3); Debug.Assert(i1 == i3); }
private void Config() { IWMProfileManager pWMProfileManager = null; IWMProfile pWMProfile = null; IWMProfile3 pWMProfile3 = null; // Open the profile manager WMUtils.WMCreateProfileManager(out pWMProfileManager); pWMProfileManager.CreateEmptyProfile(WMVersion.V9_0, out pWMProfile); pWMProfile3 = pWMProfile as IWMProfile3; pWMProfile3.CreateNewBandwidthSharing(out m_pBS); }