WdfUsbTargetPipeIsOutEndpoint - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfusb.h

BOOLEAN WdfUsbTargetPipeIsOutEndpoint(
  [in] WDFUSBPIPE Pipe
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfusb-wdfusbtargetpipeisoutendpoint)

WdfUsbTargetPipeIsOutEndpoint function

Description

[Applies to KMDF and UMDF]

The WdfUsbTargetPipeIsOutEndpoint method determines whether a specified USB pipe is connected to an output endpoint.

Parameters

Pipe [in]

A handle to a framework pipe object that represents a bulk pipe or interrupt pipe and was obtained by calling WdfUsbInterfaceGetConfiguredPipe.

Return value

WdfUsbTargetPipeIsOutEndpoint returns TRUE if the pipe that the Pipe handle represents an output endpoint. The method returns FALSE if the endpoint is an input endpoint.

A bug check occurs if the driver supplies an invalid object handle.

Remarks

For more information about the WdfUsbTargetPipeIsOutEndpoint method and USB I/O targets, see USB I/O Targets.

Examples

The following code example determines whether a specified USB pipe is connected to an output endpoint.

BOOLEAN isOutEndPoint;

isOutEndPoint = WdfUsbTargetPipeIsOutEndpoint(usbPipe);

See also

WDF_USB_PIPE_DIRECTION_OUT

WdfUsbInterfaceGetConfiguredPipe

WdfUsbTargetPipeIsInEndpoint