|Microsoft DirectX 9.0|
The AddNotificationType method adds a type of event for which notifications are required. This method is called by the IDirectMusicPerformance8::AddNotificationType method, allowing the segment to generate notifications. The segment calls each track's IDirectMusicTrack8::AddNotificationType method.
HRESULT AddNotificationType( REFGUID rguidNotificationType );
Reference to (C++) or address of (C) the identifier of the notification type to add. For the defined types, see DMUS_NOTIFICATION_PMSG. Applications can also define their own types for custom tracks.
If the method succeeds, it returns S_OK, or S_FALSE if the type was already added.
If it fails, the method can return one of the error values shown in the following table.
Segments cannot generate notifications of type GUID_NOTIFICATION_PERFORMANCE. To get notifications of this type, you must call IDirectMusicPerformance8::AddNotificationType.
Header: Declared in dmusici.h.