Device.SetCooperativeLevel(Control,CooperativeLevel) Method (Microsoft.DirectX.DirectSound)
Sets the cooperative level of the application for this sound device.
Visual Basic Public Sub SetCooperativeLevel( _
ByVal owner As Control, _
ByVal level As CooperativeLevel _
C# public void SetCooperativeLevel(
JScript public function SetCooperativeLevel(
owner : Control,
level : CooperativeLevel
The System.Windows.Forms.Control of the application that is using the Device object.
The requested cooperative level. Specify one of the values shown in the following table
The application must set the cooperative level by calling this method before its buffers can be played.
The request failed because resources, such as a priority level, were already in use by another caller.
An invalid parameter was passed to the called method.
Root exception type for all DirectSound exceptions. Derives from DirectXException.
The function called is not supported at this time.