Microsoft DirectX 9.0 SDK Update (October 2004)

CooperativeLevel Enumeration

Language:

Note: This documentation is preliminary and is subject to change.

Contains constants for a Device object's cooperative level.

Definition

Visual Basic .NET Public Enum CooperativeLevel
C# public enum CooperativeLevel
Managed C++ __value public enum CooperativeLevel
JScript .NET public enum CooperativeLevel

Members

Member Value Description
Normal 1 Sets the normal level. This level has the smoothest multitasking and resource-sharing behavior, but because it does not allow the primary buffer format to change, output is restricted to the default 8-bit format.
Priority 2 Sets the priority level. Applications with this cooperative level can have buffers that use the Format property and devices that call the Compact method.
WritePrimary 4 Sets the write-primary level. The application has write access to the primary buffer. No secondary buffers can be played. This level cannot be set if the DirectSound driver is being emulated for the device; that is, if the Device.Caps property returns the EmulateDriver flag in the Caps structure.

Remarks

The application must set the cooperative level by calling this method before its buffers can be played. The recommended cooperative level is Priority.

Enumeration Information

Namespace Microsoft.DirectX.DirectSound
Assembly Microsoft.DirectX.DirectSound (microsoft.directx.directsound.dll)
Strong Name Microsoft.DirectX.DirectSound,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center