// wdfcollection.h
WDFOBJECT WdfCollectionGetLastItem(
[in] WDFCOLLECTION Collection
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF and UMDF]
The WdfCollectionGetLastItem method returns a handle to the last object that is in an object collection.
Collection
[in]A handle to a collection object.
WdfCollectionGetLastItem returns a handle to the object that is currently at the end of the specified collection's list of objects, or NULL if the list is empty.
A bug check occurs if the driver supplies an invalid object handle.
For more information about object collections, see Framework Object Collections.
The following code example obtains a handle to the last object that is in an object collection.
WDFOBJECT lastItem;
lastItem = WdfCollectionGetLastItem(hCollection);