// wdfusb.h
BOOLEAN WdfUsbTargetPipeIsInEndpoint(
[in] WDFUSBPIPE Pipe
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF and UMDF]
The WdfUsbTargetPipeIsInEndpoint method determines whether a specified USB pipe is connected to an input endpoint.
Pipe [in]A handle to a framework pipe object that represents a bulk pipe or interrupt pipe and was obtained by calling WdfUsbInterfaceGetConfiguredPipe.
WdfUsbTargetPipeIsInEndpoint returns TRUE if the pipe that the Pipe handle represents is an input endpoint. The method returns FALSE if the endpoint is an output endpoint.
A bug check occurs if the driver supplies an invalid object handle.
For more information about the WdfUsbTargetPipeIsInEndpoint method and USB I/O targets, see USB I/O Targets.
The following code example determines whether a specified USB pipe is connected to an input endpoint.
BOOLEAN isInEndPoint;
isInEndPoint = WdfUsbTargetPipeIsInEndpoint(usbPipe);
WdfUsbInterfaceGetConfiguredPipe