// wdfrequest.h
BOOLEAN WdfRequestIsFromUserModeDriver(
[in] WDFREQUEST Request
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to UMDF only]
The WdfRequestIsFromUserModeDriver method indicates whether an I/O request came from a user-mode driver or an application.
Request [in]A handle to a framework request object.
WdfRequestIsFromUserModeDriver returns TRUE if the specified I/O request is from a user-mode driver. The method returns FALSE if the current I/O request came from an application.
If your driver supports kernel-mode clients, it should call WdfRequestIsFromUserModeDriver only if WdfRequestGetRequestorMode returns WdfUserMode.