3.9 Notify Class

The IO Class maintains all IO subsystem objects. Notify objects represent an instance of an application’s interest in a specific event. Events such as object creation or deletion and/or device activation or deactivation can be registered for so that an application can be notified of the event.

This section covers the following topics:

3.9.1 Notify Object Registration

The NotifyRegistrationDef structure is used to register a notify object with Media Manager. A pointer to this structure is passed to the MM_RegisterObject function.

An example follows:

  ccode = MM_RegisterObject(&notifyObjectHandle, 
     MM_NOTIFY_CLASS, &NotifyRegistrationDef, 
     applicationHandle, notifyResourceTag);
  

notifyResourceTag should have been acquired with the signature MM_NOTIFY_SIGNATURE. (See Overview of Resource Tags.)

3.9.2 Notify Object Generic Information

A notify object's generic information can be obtained by calling MM_ReturnObjectGenericInfo. The NotifyGenericInfoDef structure is returned for the Notify OBID.