IWDFIoRequest2::IsFromUserModeDriver method

The IsFromUserModeDriver method indicates whether an I/O request came from a user-mode driver or an application.

Syntax


BOOL IsFromUserModeDriver();

Parameters

This method has no parameters.

Return value

A Boolean value that, if TRUE, indicates that the current I/O request is from a user-mode driver. If this value is FALSE, the current I/O request came from an application.

Remarks

If your driver supports kernel-mode clients, it should call IsFromUserModeDriver only if IWDFIoRequest2::GetRequestorMode returns WdfUserMode.

The UMDF 2 equivalent of this method is WdfRequestIsFromUserModeDriver.

Examples

For a code example that uses IsFromUserModeDriver, see the example at IWDFIoRequest2::GetRequestorMode.

Requirements

Target platform

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.9

Header

Wudfddi.h (include Wudfddi.h)

DLL

WUDFx.dll

See also

IWDFIoRequest2
IWDFIoRequest2::GetRequestorMode
WdfRequestIsFromUserModeDriver

 

 

Send comments about this topic to Microsoft

Show: