IWDFUsbInterface::RetrieveUsbPipeObject method
The RetrieveUsbPipeObject method retrieves a USB pipe object for the specified pipe index.
Syntax
HRESULT RetrieveUsbPipeObject(
  [in]   UCHAR PipeIndex,
  [out]  IWDFUsbTargetPipe **ppPipe
);
Parameters
- PipeIndex [in]
- 
The index of the USB pipe object to retrieve. 
- ppPipe [out]
- 
A pointer to a variable that receives a pointer to the IWDFUsbTargetPipe interface for the USB pipe object whose index is specified by PipeIndex. 
Return value
RetrieveUsbPipeObject returns one of the following values:
| Return code | Description | 
|---|---|
| 
 | RetrieveUsbPipeObject successfully retrieved the USB pipe object. | 
| 
 | RetrieveUsbPipeObject encountered an allocation failure. | 
| 
 | This value corresponds to the error code that the WinUsb API returned. | 
Remarks
A UMDF driver can call the methods of the IWDFUsbTargetPipe interface that the RetrieveUsbPipeObject method retrieves to obtain the type of pipe and other information.
Examples
For a code example of how to use theRetrieveUsbPipeObject method, see IWDFUsbInterface::GetNumEndPoints.
Requirements
| End of support | Unavailable in UMDF 2.0 and later. | 
|---|---|
| Minimum UMDF version | 1.5 | 
| Header | 
 | 
| DLL | 
 | 
See also

