#ifndef _NTRTL_H #define RtlIsRoot(Links) ((RtlParent(Links) == (PRTL_SPLAY_LINKS)(Links))) #endif View code on GitHub
This macro is documented in Windows Driver Kit.