Share via


IDirectMusicSegment::AddNotificationType

This method is similar to and called from the IDirectMusicPerformance::AddNotificationType method, allowing the segment to respond to notifications. The segment calls each track's IDirectMusicTrack::AddNotificationType method.

HRESULT AddNotificationType(
  REFGUID rguidNotificationType
);

Parameters

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

E_POINTER
E_OUTOFMEMORY

Remarks

Segments cannot generate notifications of type GUID_NOTIFICATION_PERFORMANCE. To get notifications of this type, you must call IDirectMusicPerformance::AddNotificationType.

Requirements

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::AddNotificationType | IDirectMusicTrack::AddNotificationType | DMUS_NOTIFICATION_PMSG

 Last updated on Monday, April 12, 2004

© 1992-2002 Microsoft Corporation. All rights reserved.