Microsoft DirectX 8.0 (C++) |
Enables event notification for a track. It is similar to and called from the IDirectMusicSegment8::AddNotificationType method.
HRESULT AddNotificationType( REFGUID rguidNotificationType );
If the method succeeds, the return value is S_OK, or S_FALSE if the track does not support the notification type.
If it fails, the method can return one of the following error values:
DMUS_E_NOT_INIT |
E_NOTIMPL |
If the track does not support notifications, the method returns E_NOTIMPL. A motif or style track returns DMUS_E_NOT_INIT if it has not been initialized.
Header: Declared in dmplugin.h.
IDirectMusicTrack8::RemoveNotificationType, Notification and Event Handling