A Sandcastle Documented Class Library
Open Method (instance, pVID_PID, pEP, dwDir, dwReserved)
Namespaces > PICUSB > MPUSB > Open(UInt32, String, String, PipeDir, UInt32)
Opens a pipe to a USB endpoint.
Syntax
C#Visual BasicManaged C++
public static uint Open (
	uint instance,
	string pVID_PID,
	string pEP,
	usb_interface.MPUSB.PipeDir dwDir,
	uint dwReserved
)
Public Shared Function Open ( _
	instance As UInteger, _
	pVID_PID As String, _
	pEP As String, _
	dwDir As PipeDir, _
	dwReserved As UInteger _
) As UInteger
public:
static unsigned int Open (
	unsigned int instance, 
	String^ pVID_PID, 
	String^ pEP, 
	PipeDir dwDir, 
	unsigned int dwReserved
)
Parameters
instance (UInt32)
Index of PIC to connect to. Use zero if only one PIC is connected.
pVID_PID (String)
VID/PID of PIC
pEP (String)
String representing endpoint to connect to
dwDir (PipeDir)
Direction of transfer
dwReserved (UInt32)
0
Return Value
Handle of opened pipe (or INVALID handle if failed)

Assembly: PICUSB Version: 1.0.2970.38156 (Module: PICUSB)