3.4.5.1.2 Removing Pack Objects for Dynamic Providers

The server MUST maintain a list of detected dynamic disk packs. When the server discovers that a pack was removed, it MUST remove the corresponding pack object from the list of storage management objects. For each callback object that is registered in the list of callback objects, the server MUST call the IVdsAdviseSink::OnNotify (Opnum 3) method for the callback object with a VDS_NOTIFICATION structure that has the following attributes:

  • objectType member set to VDS_NTT_PACK.

  • Pack member set to a VDS_PACK_NOTIFICATION that has the following attributes:

    • ulEvent set to VDS_NF_PACK_DEPART.

    • packId set to the VDS_OBJECT_ID of the pack object that was removed.