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:
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(¬ifyObjectHandle, MM_NOTIFY_CLASS, &NotifyRegistrationDef, applicationHandle, notifyResourceTag);
notifyResourceTag should have been acquired with the signature MM_NOTIFY_SIGNATURE. (See Overview of Resource Tags.)
A notify object's generic information can be obtained by calling MM_ReturnObjectGenericInfo. The NotifyGenericInfoDef structure is returned for the Notify OBID.