Microsoft DirectX 8.0 (Visual Basic) |
Sets the cooperative level of the application for this sound device.
object.SetCooperativeLevel( _ hwnd As Long, _ level As CONST_DSSCLFLAGS)
If the method fails, an error is raised and Err.Number may be one of the following error values.
DSERR_ALLOCATED |
DSERR_INVALIDPARAM |
DSERR_UNINITIALIZED |
DSERR_UNSUPPORTED |
The application must set the cooperative level by calling this method before its buffers can be played. The recommended cooperative level is DSSCL_PRIORITY.
The hwnd parameter should be the top-level application window handle.