#ifndef _NTRTL_H _Must_inspect_result_ FORCEINLINE BOOLEAN IsListEmpty( _In_ PLIST_ENTRY ListHead ) { return ListHead->Flink == ListHead; } #endif View code on GitHub
This function is documented in Windows Driver Kit.