// ntifs.h
BOOLEAN FsRtlIsEcpFromUserMode(
[in] PVOID EcpContext
);
View the official Windows Driver Kit DDI referenceNo description available.
The FsRtlIsEcpFromUserMode routine determines whether an extra create parameter (ECP) context structure originated from user mode.
EcpContext [in]Pointer to the ECP context structure to test.
FsRtlIsEcpFromUserMode returns TRUE if the ECP context structure originated in user mode and FALSE if the ECP context structure originated in kernel mode.