This method adds a notification type to the performance. All segments and tracks are automatically updated with the new notification by calling their AddNotificationType methods.

HRESULT AddNotificationType(
  REFGUID rguidNotificationType


  • 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.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method can return one of the following error values:



OS Versions: Windows CE .NET 4.0 and Windows CE .NET 4.1.
Header: Dmusici.h.
Link Library: Dmusic.lib.

See Also

Notification and Event Handling | IDirectMusicPerformance::RemoveNotificationType | IDirectMusicSegment::AddNotificationType | IDirectMusicTrack::AddNotificationType | DMUS_NOTIFICATION_PMSG

 Last updated on Monday, April 12, 2004

© 1992-2002 Microsoft Corporation. All rights reserved.