Share via


MLNotificationItem (Compact 7)

3/12/2014

This structure contains information about the media item; for example, a folder or photograph that a user modified.

Syntax

typedef [switch_type(MLNotificationType)] union 
{ 
 [case (ScanResultCode)]  
 struct 
 { 
 char location[32]; 
 HRESULT hr; 
 } scanResultCode; 
 [case (Deleted, Modified)] 
 struct 
 { 
 // Type of the entity modified (music, photo, etc.) 
 //  
 ULONG type; 
 // Id of the entity modified 
 // 
 ULONGLONG id; 
 } entityId; 
 [default] ; 
} MLNotificationData; 
typedef struct _MLNotificationItem 
{ 
 // Type of the event 
 // 
 MLNotificationType eventType; 
 [switch_is(eventType)] MLNotificationData eventData;  
} MLNotificationItem; 

Members

  • eventType
    Member of the MLNotificationType enumeration that specifies the action that caused the notification event.
  • entityType
    Type of media item that was modified.
  • id
    ID of the modified entity.
  • eventData
    Structure that holds information about the notification. It is of the type MLNotificationData.

Remarks

Media entities are the types of content supported by the Media Library, which include music, video, photo, playlist, playlist entry, and generic.

Requirements

Header

mlibdll.h,
mlibdll.idl

See Also

Reference

Media Library Structures