// wdfcollection.h
VOID WdfCollectionRemove(
[in] WDFCOLLECTION Collection,
[in] WDFOBJECT Item
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF and UMDF]
The WdfCollectionRemove method removes an object from a specified object collection.
Collection
[in]A handle to a collection object.
Item
[in]A handle to the framework object that will be removed from the collection.
A bug check occurs if the driver supplies an invalid object handle.
When WdfCollectionRemove removes an object from a collection, it decrements the object's reference count.
For more information about object collections, see Framework Object Collections.
The following code example removes a specified object from a specified object collection.
WdfCollectionRemove(
hCollection,
hObject
);