The ExQueryDepthSList routine returns the number of entries currently in a given sequenced, singly linked list.
USHORT
ExQueryDepthSList(
IN PSLIST_HEADER SListHead
);
ExQueryDepthSList returns the current number of entries in the S-List.
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
Callers of ExQueryDepthSList can be running at IRQL <= DISPATCH_LEVEL.
ExInitializeSListHead, ExInterlockedPushEntrySList, ExInterlockedPopEntrySList